WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Activating custom post type (4 posts)

  1. Carmdq
    Member
    Posted 1 year ago #

    Hi mitcho,

    I have a portfolio theme using custom posts called projects and I want to display three custom related posts thumbnails below each project. The theme is using it's own single-projects.php file.

    I think I need to activate custom posts in YARPP so it recognizes this posts.

    1.Can you tell me how to activate this setting and where does that code belong?

    2.Will it be able to display the custom posts based on each posts tags?

    Thanks

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

  2. becca37
    Member
    Posted 1 year ago #

    When you're in the dashboard, on the YARP settings page click Help and go to the Developing With Yarpp section, it discusses custom post types.

  3. MrMatt537
    Member
    Posted 1 year ago #

    Hey there,

    I apologize for my newbie ways here...but i have to ask the same question as above member Carmdq ... I looked at the "developing with yarpp" help section...and it does mention them - but I have no idea how to implement that. What code do I enter into my custom post types .php file? and where?
    i looked through that .php file, but theres nothing from yarpp....so how can i set it to true?

    in my case the custom post type is "single-reviews.php" .. please help? thank you for any effort here :)

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks @becca37 for the pointer! Indeed, the custom post type support is described there, though maybe it's a little dense...

    The first step is to find where your custom post type (for @MrMatt537, looks like "reviews") is defined. If you're using a custom plugin or someone else wrote some code for you to define this custom post type, you'll have to contact that author or modify their code. Otherwise, you should have a register_post_type call in your own call (maybe in functions.php) and that's where you'll want to make sure 'yarpp_support' => true. I hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.