WordPress.org

Forums

Custom Post Type UI
[resolved] yarpp support true (8 posts)

  1. erikhermansen
    Member
    Posted 1 year ago #

    Hi

    I'm having trouble implementing YARPP (http://wordpress.org/plugins/yet-another-related-posts-plugin/) with CPT UI.

    The issue here is that for YARPP to support custom post types, i need to add the following line when creating the post type:
    'yarpp_support' => true

    Which to my knowledge is not an option in CPT UI.

    Can i add this line after creating the post type? Or is there any way to be able to add when creating new CPT's?

    Thanks. Erik

    https://wordpress.org/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Looks like the best bet you have is the "Get code" functionality that CPTUI offers. It'll get you code that can be added to your functions.php file to have it registered there. I can't think of any other way.

  3. koroikoroi
    Member
    Posted 1 year ago #

    Hi Michael,

    Is there any plan to include a feature for adding custom params (such as the mentioned YARPP param)?

    Thanks

  4. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    I really need to get this plugin picked up again for development, to be honest. I was going well for awhile and the *plop*

    I'd need to investigate how to actually do what's needed, but at best I think I'd end up with some sort of filter going on for that. It wouldn't be an immediate integration for everyone, but someone would be able to hook into the right spot on their own.

  5. koroikoroi
    Member
    Posted 1 year ago #

    Hi Michael,

    Just a suggestion, may be you could go for a simple approach by providing key-value fields, which users can fill in at their own risk.

    In this case, the user can fill in 'yarpp_support" as the key and true (boolean) as the value.

    Regards

  6. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

  7. koroikoroi
    Member
    Posted 1 year ago #

    Cool, thank you

  8. Michael Beckwith
    Member
    Plugin Author

    Posted 4 months ago #

    Will be able to be added via filter in 0.9.0.

    Beta copy if you want to check things out and test: https://github.com/WebDevStudios/custom-post-type-ui/archive/dev.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags