• Hello. I can see YARPP supports CPT’s, however I’m trying to get YARPP to display regular posts which are related to a CPT.

    I set up the relationship using PODS so that this CPT and Posts are related to each other and now I need to display them somehow. Is this possible with YARPP?

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

Viewing 1 replies (of 1 total)
  • Plugin Support Michael Nelson

    (@mnelson4)

    Hi @sidianmsjones. Yes it’s possible with YARPP.
    To have YARPP recommend a particular type of CPT on regular posts, go to
    YARPP’s admin settings page and:
    1. Under “the pool”, set “Post types to include” to only the CPT you want to be recommended
    2. Also under “the pool”, make sure “Limit to same post type” is UNchecked.
    3. Under “Automatic Display Options”, use “Automatically display related content on…” to only posts.

    This way, on regular posts, YARPP will recommend the CPT you chose based on the criteria you set under “the algorithm”.

    Note though that there’s no built-in way for YARPP consider PODS fields. But you can filter the WP_Query like on this forum post: https://www.ads-software.com/support/topic/related-products-in-stock-or-on-backorder/#post-14584420
    You’ll just need to adapt that code snippet to however you’re using PODS (which, to be honest, I’ve only dabbled in lightly.)
    Does that help at all?

Viewing 1 replies (of 1 total)
  • The topic ‘Regular Posts Related to Custom Post Types’ is closed to new replies.