Forum Replies Created

Viewing 15 replies - 1 through 15 (of 45 total)
  • Thread Starter Behrouz

    (@nwm2006)

    Thank you for the information ??

    I just deactivate the auto update of wordpress

    Thread Starter Behrouz

    (@nwm2006)

    I figured If I put the translated files in the following folder it works!

    wp-content/languages/plugins

    Thread Starter Behrouz

    (@nwm2006)

    Thank you ??

    Thread Starter Behrouz

    (@nwm2006)

    I’ve taken your feedback into account and updated the code for those reading this topic and want to use it. Now, if a colon is detected, it extracts the name based on that. Otherwise, it will default to using the heading:

    $directions = [];
    if ( isset($recipe['directions']) && !empty($recipe['directions']) ):
    $number = 1;
    $dir_name = '';

    foreach ( $recipe['directions'] as $dir ):
    if ( isset( $dir['section_heading_name'] ) ):
    $dir_name = $dir['section_heading_name'];
    continue;
    endif;

    $direction = Cooked_Recipes::single_direction( $dir, false, true );
    $direction_cleaned = wp_strip_all_tags( preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $direction) );
    $image_id = isset($dir['image']) ? $dir['image'] : false;

    $image = '';
    if ( $image_id ):
    $image = wp_get_attachment_image_src( $image_id, 'full' );
    $image = $image[0];
    endif;

    if (empty($dir_name)) {
    $dir_name = 'Step ' . $number;
    }

    // Check for colon in the direction text and adjust the name and text accordingly
    $input = $direction_cleaned;
    if (strpos($input, ':') !== false) {
    list($step_name, $instruction) = explode(':', $input, 2);
    $step_name = trim($step_name);
    $instruction = trim($instruction);
    } else {
    $step_name = $dir_name;
    $instruction = $input;
    }

    $directions[] = [
    '@type' => 'HowToStep',
    'name' => $step_name,
    'text' => $instruction,
    'url' => get_permalink($rpost) . '#cooked-single-direction-step-' . $number,
    'image' => $image,
    ];

    $number++;
    endforeach;
    endif;
    Thread Starter Behrouz

    (@nwm2006)

    Thank you for your prompt response

    You are right, in my case there are usually two or at most three heading and seven or more steps. Regarding SEO, Rich snippets are richer with each step having a name but you are, it might make some issues for regular users.

    Pro Version:
    Where can I see the features and changelog?
    Do you have this option in your road map?
    Is the rating based on ip address or cookies? Can all users rate the recipe?

    Thread Starter Behrouz

    (@nwm2006)

    I didn’t get a notification for your reply, so sorry if this is late.

    I’m still seeing the issue, it might just be a conflict with one of my plugins. Not a big deal!

    I did notice you updated the recipe schema markup and I’m really thankful for that! It needed an updat. But I think there’s a little SEO tweak that could make it even better. Right now, using the same name for each step (Based on titles) in the “howtostep” of the schema markup might not be super SEO-friendly.

    I’m not a developer, but I made a small change that seems to work for me! What if we could use a text before the colon in each step, and that changes to the step’s name? I made an adjustment to the class.cooked.seo.php file, and it’s working on my end. Maybe you can check it out, and if you like it, consider adding it to the plugin.

    For example
    “Mxing the ingredients: You need to mixed all the ingredients in a big….”
    Mxing the ingredients would be the name of the step in schema mark up and the rest is the text

    $directions = [];
    if ( isset($recipe['directions']) && !empty($recipe['directions']) ):
    $number = 1;

    foreach ( $recipe['directions'] as $dir ):
    $dir_name = isset( $dir['section_heading_name'] ) ? $dir['section_heading_name'] : '';

    if ( isset( $dir['section_heading_name'] ) ): continue; endif;

    $direction = Cooked_Recipes::single_direction( $dir, false, true );
    $direction_cleaned = wp_strip_all_tags( preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $direction) );

    // Split the direction text by the first colon
    $split_direction = explode(':', $direction_cleaned, 2);
    $dir_name = trim($split_direction[0]); // Name before the first colon
    $direction_text = isset($split_direction[1]) ? trim($split_direction[1]) : ''; // Text after the first colon

    $image_id = isset($dir['image']) ? $dir['image'] : false;

    $image = '';
    if ( $image_id ):
    $image = wp_get_attachment_image_src( $image_id, 'full' );
    $image = $image[0];
    endif;

    // Fallback if the name is empty
    if (empty($dir_name)) {
    $dir_name = 'Step ' . $number;
    }

    $directions[] = [
    '@type' => 'HowToStep',
    'name' => $dir_name, // Use the part before colon as name
    'text' => $direction_text, // Use the part after colon as the instruction
    'url' => get_permalink($rpost) . '#cooked-single-direction-step-' . $number,
    'image' => $image,
    ];

    $number++;
    endforeach;
    endif;

    If you can also give the “name” a class so we can customize or even hide it using the css, would make it perfect

    I’m also interested in your pro version. does it come with a meal plan functionality?

    Thread Starter Behrouz

    (@nwm2006)

    Persian or arabic characters in the contact form in the widgets are replaced with “?” question mark in Lead section of the plugin. Here is a screenshot

    To reproduce the issue on your end you can copy paste the following text

    ???? ?????? ??? ?????? ?? ????? ????? ??????? ?? ???? ???? ? ?? ??????? ?? ?????? ?????? ???? ??????? ? ???? ???? ??????? ? ???? ?? ???? ? ????????? ?? ???? ????

    Thread Starter Behrouz

    (@nwm2006)

    Di you just changed the topic to resolved without answering?

    Thread Starter Behrouz

    (@nwm2006)

    You are fast ??

    Thread Starter Behrouz

    (@nwm2006)

    Now that you are making this plugin great again ?? can you also work on the recipe schema mark-up please! It’s old. Newer rich snippets make directions as Howtos and steps.

    Thread Starter Behrouz

    (@nwm2006)

    great job

    Thread Starter Behrouz

    (@nwm2006)

    Notes are extra tips or steps to make the recipe better. It should be a list type with a unique class so we can modify its style in a way that suits our theme. It can be added in a new tab maybe with WYSIWYG editor and can be added by shortcode to the recipe template.

    Thread Starter Behrouz

    (@nwm2006)

    I would really appreciate it if you could edit your review, as this affects the overall rating,?

    I’m sorry, you are right about affecting the overall rating so I edited my rating but I was actually disappointed by the plugin.

    Being a new user, I need the opportunity to try out your plugin before making a decision about purchasing the pro version, to ensure it meets my needs.

    Thread Starter Behrouz

    (@nwm2006)

    Is it going to be fixed?

    Is it possible to use nutrition facts in the sidebar I couldn’t figure it out…

    If I purchase the pro version can I make fake ratings for recipes? for seo purposes…

    • This reply was modified 10 months, 1 week ago by Behrouz.
    Thread Starter Behrouz

    (@nwm2006)

    But I did! Is it possible if I change the labels in taxonomies settings it doesn’t recognize them? because I have selected both of them for the recipe, but I have changed the labels to their Persian equivalent!

Viewing 15 replies - 1 through 15 (of 45 total)