WordPress.org

Support

Support » Plugins and Hacks » Yet Another Related Posts Plugin (YARPP) » [Resolved] Display related posts from custom post types in selected pages only

[Resolved] Display related posts from custom post types in selected pages only

  • hormiganegra

    @hormiganegra

    Hi!
    I want to display a list of related posts from a custom post type taxonomy in selected pages only. This example I think will explain it better:

    • In the Fruits page, I want to display related posts from the Fruits taxonomy of the custom post type Food
    • In the Vegetables page, I want to display related posts form the Vegetables taxonomy of the custom post type Food
    • In the Meat page, I want to display related posts form the Meat taxonomy of the custom post type Food

    But in other pages, I don’t want any related posts listed.

    Is this at all possible? I guess it could be easy to do with shortcodes, but I saw in this thread that you’re not planning to support them.

    Any advice will be welcome!

    Thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    You can do this using some custom PHP, by loading yarpp_related() in your theme with the appropriate arguments. More information on developing with YARPP is in the readme.

    There are technical reasons why YARPP is difficult to run as a shortcode, so shortcode support will not be coming.

    hormiganegra

    @hormiganegra

    Thanks! I’ll see if I can make it work

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Display related posts from custom post types in selected pages only’ is closed to new replies.
Skip to toolbar