Viewing 7 replies - 1 through 7 (of 7 total)
  • Dear David,

    thanks for reaching out.

    Please note that currently there is no option to use Related Post plugin for pages but we are thinking of adding the feature in the future.

    In order to make it work with custom post types, please see the following thread that could be helpful: https://www.ads-software.com/support/topic/any-plans-for-custom-post-type?replies=5#post-7665345

    If you have any other questions or need assistance, please let me know.

    Cheers,
    Petra

    Thread Starter David Borrink

    (@davidborrink)

    Petra,

    Thanks for answering. So now we know. Glad to have made a suggestion. ??

    We always appreciate the feedback we get ??

    Let me know if you can make it work with the custom post type though.

    Hi PetraP,

    I have the same problem and I tried your suggestion on the custom post type and modified the code in the init.php as follows:

    if ($content != "" && $post->post_type === 'post' || 'page' && (($options["on_single_post"] && (is_single() || is_page()) ) || (is_feed() && $options["on_rss"])))

    I just added the || ‘page’ and the || is_page() on that particular code. The related post is now showing on my pages, however, it is only showing related posts (post_type = ‘post’), it did not search for related pages (post_type = ‘page’) . How can the plugin query both ‘post’ and ‘page’ to show as related?

    Thanks in advance!

    Hey marhgil,

    yes, you can make the “Related Posts” show on pages but sadly, as you have already noticed – only related posts are included in the “suggestion” pool. And this is what we want to change in the future. To have the option, to not only show the related posts on posts or pages but also have pages in the “related posts” pool.

    Hopefully this will be added sooner than later and sorry for not being more helpful.

    If you have any other questions or need assistance, please do not hesitate to ask.

    Best,
    Petra

    I went ahead and tinker with your SQL query on recommendations.php and modified the queries on $q, $q1 and $q2
    I just replaced:

    post_type = 'post'

    with

    (post_type = 'post' OR post_type = 'page')

    That works for me. ??

    That is great – will let our tech team know, so that they take a closer look…and if this does not conflict/affect the plugin in a bad way, we will/should definitely implement an option to include the pages as well ??

    Thank you,
    Petra

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Is it possible to use pages as well as posts?’ is closed to new replies.