Support » Plugin: Yet Another Related Posts Plugin (YARPP) » Activating custom post type

  • Resolved Carmdq


    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?


Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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 🙂

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activating custom post type’ is closed to new replies.