• Resolved krsp

    (@krsp)


    After installing and setting up the plugin, the related items only show on Pages, not posts.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author YARPP

    (@jeffparker)

    @krsp do you have the “pages” automatic placement option checked off and if you have a caching plugin, cleared the cache after installing YARPP?

    https://www.dropbox.com/s/z1epudt9s9o1kds/yarpp-help-pages.png?dl=0

    Thread Starter krsp

    (@krsp)

    Hi Jeff, no i use the sidebar widget only to display related items. They work fine on any page but not on any posts.

    Plugin Support Michael Nelson

    (@mnelson4)

    HI @krsp, I double-checked and the widget is working fine in my case.

    Maybe you should try setting “Match threshold” to 0 and see if the related posts appear? (Ie, maybe they’re not appearing because they’re the posts are too disimilar?)

    Alternatively, maybe share with us what theme you’re using. Maybe it’s an issue specific to that theme.

    Thread Starter krsp

    (@krsp)

    I will try 0 match, the theme is Generatepress with a child theme.

    Thread Starter krsp

    (@krsp)

    Changed to 0 match related and still nothing in posts. Also added the indexes of course and set consider for bodies with extra weight, other options only “consider”. Anything else I can do?

    Plugin Support Michael Nelson

    (@mnelson4)

    Hmmm I think the next step would be to share your YARPP settings. Here’s how:
    In the WordPress admin menu, under Settings, click YARPP. Then click Help in the top-right corner, and then click “Optional Data Collection” tab. Then copy the data under “The following information is sent back to YARPP”, and paste it in here. That might help give us a clue what else could be the problem.

    Thread Starter krsp

    (@krsp)

    Here they are:

    [versions] =>
    [yarpp] => 5.2.2
    [wp] => 5.4.2
    [php] => 7.4.8
    [mysql] => 5.7.30
    [yarpp] =>
    [settings] =>
    [threshold] => 0
    [limit] => 3
    [excerpt_length] => 10
    [recent] =>
    [rss_limit] => 3
    [rss_excerpt_length] => 10
    [past_only] =>
    [show_excerpt] =>
    [rss_show_excerpt] =>
    [template] => yarpp-template-thumbnail.php
    [rss_template] =>
    [show_pass_post] =>
    [cross_relate] =>
    [rss_display] =>
    [rss_excerpt_display] => 1
    [promote_yarpp] =>
    [rss_promote_yarpp] =>
    [myisam_override] =>
    [weight] =>
    [title] => 1
    [body] => 3
    [tax] =>
    [category] => 1
    [post_tag] => 1
    [require_tax] =>
    [auto_display_archive] =>
    [auto_display_post_types] =>
    [cache_engine] => tables
    [changed_settings] => display_code
    [cache_status] => 0.5625
    [stats] => 3:48
    [diagnostics] =>
    [myisam_posts] => InnoDB
    [fulltext_disabled] =>
    [fulltext_indices] => 1
    [hidden_metaboxes] =>
    [post_thumbnails] => 1
    [happy] => 1
    [using_thumbnails] =>
    [generate_thumbnails] =>
    [stats] =>
    [counts] =>
    [post] => 8
    [page] => 55
    [attachment] => 0
    [elementor_library] => 1
    [terms] =>
    [category] => 2
    [post_tag] => 4
    [post_format] => 0
    [comments] =>
    [moderated] => 0
    [approved] => 0
    [total] => 0
    [posts] => 0
    [users] => 5
    [locale] => en-US
    [url] => https://legalo.net
    [plugins] =>
    [active] => worker/init.php|404page/404page.php|akismet/akismet.php|block-editor-colors/plugin.php|code-snippets/code-snippets.php|cookie-law-info/cookie-law-info.php|duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php|elementor/elementor.php|filester/ninja-file-manager.php|getwid/getwid.php|google-site-kit/google-site-kit.php|gp-premium/gp-premium.php|health-check/health-check.php|info-block/plugin.php|newsletter/plugin.php|rate-my-post/rate-my-post.php|reading-time-wp/rt-reading-time.php|simply-show-hooks/index.php|social-polls-by-opinionstage/plugin.php|sucuri-scanner/sucuri.php|unlimited-elements-for-elementor/unlimited_elements.php|wordpress-seo-premium/wp-seo-premium.php|yet-another-related-posts-plugin/yarpp.php
    [sitewide] =>
    [pools] =>

    Plugin Support Michael Nelson

    (@mnelson4)

    Thanks for sharing that @krsp.

    Here’s another question: have you checked anything under “Disallow by Category” or “Disallow by Tag”? Eg https://i.imgur.com/yQibMMc.png . If so, that would prevent any posts using those categories and tags from appearing as results (but it wouldn’t affect pages as they don’t have categories or tags).

    Sorry, I thought the information you copy-and-pasted would have had that in it, but it turns out it doesn’t.

    Thread Starter krsp

    (@krsp)

    No nothing checked in that area.

    Plugin Support Michael Nelson

    (@mnelson4)

    Thanks for confirming that @krsp. I think you may have uncovered a bug. If you UNcheck “Display results from all post types” on the YARPP settings page, under “Relatedness options”, and save, you’ll see related content on posts… and it will all be from related pages.

    Can you try that and let me know if it works?

    Thread Starter krsp

    (@krsp)

    Yep that’s correct now it displays everything pages, posts the lot.

    Plugin Support Michael Nelson

    (@mnelson4)

    Great thanks for the confirmation. So that’s a bug when you set YARPP to only return results of the same type (if content of other types are more related, it returns nothing!)

    We have a fix ready to go. @krsp could you help test it? If so I’ll post some instructions on how to do that.

    Thread Starter krsp

    (@krsp)

    Yes, would be more than happy to. My client is itching to get this working lol

    Plugin Support Michael Nelson

    (@mnelson4)

    Ok great! (FYI sorry but I find working on widely-used plugins usually progresses more slowly than single sites because there’s a lot more to consider, but we’ll try to keep your client happy!)

    Here’s how to try the new version:

    1. Download the new version from here: https://drive.google.com/file/d/1wtEa5z0e-DHjpqWR7XDQ8SP8iJWIauRn/view?usp=sharing
    2. Go to your WordPress dashboard, click plugins, then “add new”, then “upload” and select the zip file you just downloaded
    3. Deactivate the previous version of YARPP
    4. Activate the new version of YARPP

    Then YARPP should only display related posts if you uncheck “Display results from all post types” (whereas before that wasn’t showing anything) and it should continue to display posts and pages if you leave that option checked.

    Note you might need to change the “Match Threshold” (eg increase or decrease by 0.1 or something) for YARPP to realize it needs to recalculate which posts are the most related, otherwise it will return the previously-cached results.

    Thread Starter krsp

    (@krsp)

    I think the update fixed it! Thank you for the fast response!

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Related posts show on pages not posts’ is closed to new replies.