add_filter('seopress_schemas_mapping_select', 'sp_schemas_mapping_select'); function sp_schemas_mapping_select($select) { //Add the new group option + option to the list $select['Custom variables'] = [ 'my_custom_var_key' => __('My super custom var', 'wp-seopress-pro'), ];return $select; } add_filter('seopress_schemas_dyn_variables', 'sp_schemas_dyn_variables'); function sp_schemas_dyn_variables($vars) { //add the variable key $vars[] = 'my_custom_var_key'; return $vars; } add_filter('seopress_schemas_dyn_variables_replace', 'sp_schemas_dyn_variables_replace'); function sp_schemas_dyn_variables_replace($values) { //replace the new key by our own value //eg: author last name $values[] = get_the_author_meta('last_name');return $values; }function sp_get_custom_fields($cf_keys) { global $wpdb; //By default, we limit the post meta (custom fields) items to 250 max //This will increase the number to 400 $limit = (int) apply_filters( 'postmeta_form_limit', 400 ); //default: 250 //This SQL query will request all your custom fields except the ones added by SEOPress, it means, hidden post meta starting by an underscore will also appear from the list $cf_keys = $wpdb->get_col( " SELECT meta_key FROM $wpdb->postmeta GROUP BY meta_key HAVING meta_key NOT LIKE '\_seopress%%' ORDER BY meta_key LIMIT $limit" );return $cf_keys; } add_filter('seopress_get_custom_fields', 'sp_get_custom_fields');
Total time
Total time - slider
5 min.250 min.
Meals
Select
Meals
Cuisine
Select
Cuisine
Calories per serving
Calories per serving - slider
0 kcal3000 kcal
Protein per serving
Protein per serving - slider
0.0 g60.0 g
Carbs per serving
Carbs per serving - slider
0 g70 g
Fat per serving
Fat per serving - slider
0.0 g22.0 g
Fiber per serving
Fiber per serving - slider
0.0 g7.0 g
Sorted by:

Don’t miss our news!

Subscribe to Our Newsletter

Copyright © 2024 Lookatdish.com. All rights reserved