Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Johann,

    thanks for reaching out and really sorry for this overdue reply!
    I think the following could work. Go to “Plugins”-> “Editor” and on the top right menu choose Related Posts by Zemanta to edit. Find the init.php file and then find the “function wp_rp_add_related_posts_hook($content)”
    and there in the if ($content != "" && $post->post_type === 'post' && (($options["on_single_post"] && is_single()) || (is_feed() && $options["on_rss"])))
    line add ” || recipe” so that you get if ($content != "" && $post->post_type === 'post' || 'recipe' && (($options["on_single_post"] && is_single()) || (is_feed() && $options["on_rss"]))).

    Don’t forget to save the changes (and also, always make a backup, just in case – it is better to be safe than sorry) and let me know how it goes.

    Keeping my fingers crossed that it will work.
    Take care and have a nice day,
    Petra

    Hi, im trying to include recipe posts also in the query for relates posts. how can i do that?

    Thread Starter JohannCR

    (@johanncr)

    Hi,

    I too am late to respond, but I managed to make it work with your help Petra :

    – the function is in fact zem_rp_add_related_posts_hook($content)

    – I had to add parenthesis for it to work (otherwise it puts two related sections on the posts) :
    if ($content != “” && ($post->post_type === ‘post’ || ‘recipe’) && (($options[“on_single_post”] && is_single()) || (is_feed() && $options[“on_rss”])))

    Thank you for your help !
    Cheers
    Johann.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recipe posts compatibility’ is closed to new replies.