Hello @abu117, Cooked works with shortcodes. If you click edit on any of your recipes, you will see the “Recipe Template” field which contains many shortcodes that make up the recipe page.
Depending on the theme that you are using, the featured image can be handled differently. Since your theme is already displaying the featured image, what you can do is simply delete the “[cooked-image]” shortcode in the Recipe Template field.
Then click the “Save as Default” button right on top of the field to open up the popover, then click “Save as Default” again and also click “Apply to All“. This will apply the new template, without the [cooked-image] shortcode to all of your recipes.
Hope this helps and let me know if you have any questions.
Hey @abu117 let me know if that worked for you. Otherwise I’m going to mark this thread as resolved.
Thread Starter
Abe
(@abu117)
sorry, I thought I had replied to this. Yes, it worked great, but I did have another question. When adding ingredients, there is a drop- down of measurements. Is it possible to add more options to that list? Thanks for your help π
Hey @abu117 I’m glad it worked. And yea you can definitely customize it but it requires a little bit of code. For example if you wanted to add Deciliter or Centiliter you could use something like this:
function custom_cooked_measurements( $measurements ) {
// Add "Deciliter"
$measurements['dl'] = array(
'singular_abbr' => esc_html__( 'dl', 'cooked' ),
'plural_abbr' => esc_html__( 'dl', 'cooked' ),
'singular' => esc_html__('deciliter','cooked'),
'plural' => esc_html__('deciliters','cooked'),
);
// Add "Centiliter"
$measurements['cl'] = array(
'singular_abbr' => esc_html__( 'cl', 'cooked' ),
'plural_abbr' => esc_html__( 'cl', 'cooked' ),
'singular' => esc_html__('centiliter','cooked'),
'plural' => esc_html__('centiliters','cooked'),
);
// Return customized array
return $measurements;
}
I know this is a little technical and if you need help getting it done I can help you do it if you set me up with a temporary login. If you do decide to give me access you can email me at support[at]cooked.pro with any sensitive information.
@abu117 I received your email and sorry about that, I just noticed that I had missed a line:
add_filter( 'cooked_measurements', 'custom_cooked_measurements', 10, 1 );
Thread Starter
Abe
(@abu117)
Thanks – that’s perfect. Thank you so much. I am marking this as resolved. Great support π