WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Where to put "yarpp_support" and set to true? (21 posts)

  1. owcv
    Member
    Posted 1 year ago #

    I added this line of code to my functions.php...

    register_post_type( 'mycpt', array('yarpp_support' => true) );

    ...to make my custom post type mycpt work with YARPP, but nothing happens i.e. I can't see an option to select mycpt to be included in the related posts.

    How and where to set yarpp_support to true?

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    The way you set yarpp_support looks correct. Go to YARPP settings and look in "The Pool" and "Relatedness" settings... if these are hidden, go to the "screen options" tab.

  3. owcv
    Member
    Posted 1 year ago #

    I did, but I can't see my custom post type nevertheless.

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm... can you maybe post the complete post type registration code you're using? I can see if I can reproduce the issue on my end.

  5. owcv
    Member
    Posted 1 year ago #

    I use this plugin for my custom post type:

    http://wordpress.org/extend/plugins/e-paper/

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    I'm confused. Did you modify your copy of e-paper to add the yarpp_support?

  7. owcv
    Member
    Posted 1 year ago #

    No, of course not. That wouldn't be update-safe. I added the line above to the functions.php of my child theme.

  8. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Oh, well, I think that's why it's not working. You can't use register_post_type to "overwrite" the settings of a custom post type that's already registered. I suggest you contact the author of e-paper and have them add the yarpp_support line of code to their custom post type declaration.

  9. oldno7
    Member
    Posted 1 year ago #

    Does using add_post_type_support work? YARPP should be made to work with that if it doesn't already.

  10. channelvision
    Member
    Posted 1 year ago #

    Also interested in this, I'd like to do the same thing using Types.

  11. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Oh yes! add_post_type_support should work. Please give that a try and let me know if it doesn't work.

  12. channelvision
    Member
    Posted 1 year ago #

    Can you provide the code for the "add_post_type_support()" to add to my function.php? I'm not really savvy :(

  13. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Oh no, I'm sorry, I replied too quickly. add_post_type_support will not work... I'll have to think about this. In the mean time, I suggest you contact the author of the e-paper plugin to have them add that yarpp_support line to their code.

  14. NorCalAl
    Member
    Posted 11 months ago #

    Funny - the one mention of this on the "Types" forum says to contact the YARPP author to find where to include the needed code.

    Is there a simple way to enable yarpp on my "Types" created CPT?

  15. owcv
    Member
    Posted 11 months ago #

    An additional option whether to include Custom Post Types or not would be a good idea yes!

  16. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 10 months ago #

    @NorCalAl If you are in touch with the Types creator, I would suggest you forward him the information on yarpp_support in the YARPP readme. Thank you for trying to make this happen! :)

  17. owcv
    Member
    Posted 10 months ago #

    Wouldn't it be a better idea to fully support custom post types in general?

  18. NorCalAl
    Member
    Posted 10 months ago #

    I saw a post on their forum saying it would be implemented in the next release, v1.4. No word on when that happens.

  19. sayekhis
    Member
    Posted 9 months ago #

    Hi
    I need a few code for related post with picture please help me
    I dont need plugin
    thanks

  20. digitalzoomstudio
    Member
    Posted 5 months ago #

    Added YARPP support to http://codecanyon.net/item/zoomfolio-wordpress-portfolio-plugin/4313341 . You just have to set yarpp_support to true in the register_post_type arguments, then enable your custom post type in the Settings > YARPP

    Simple as that.

  21. jeffparker
    Member
    Plugin Author

    Posted 5 months ago #

    Good to know, digitalzoomstudio. That's easy enough!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic