Support » Plugin: Yet Another Related Posts Plugin (YARPP) » Customizing array

  • Resolved Dezio


    Ok I write this:

    <?php yarpp_related(array(
                'post_type' => array('post'),
                'weight' => array(
                'body' => 1,
                'title' => 2,
                )); ?>

    And it work.. but.. is there a way to add something like:

    Page 1, title “I love house”, tag “house”
    Page 2, title “House of rabbits”

    Can you help me to add an array to show related posts in “House of rabbits” if there is a tag/word like the title of the page (House of rabbits) in another page (I love house).


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


    I’m sorry but I don’t understand what you’re trying to do. Can you explain again?



    Is there an array to ad a “tag filter”?

    I create a page “I love house” and I add a “house” tag.
    I create another page “House of rabbits” where I want display related post with a “house” tag. Did you understand?


    I see. It seems like what you’re doing is to automatically detect key words in your text.

    I suggest you look for a plugin which will automatically suggest or add tags based on the content, and use that together with YARPP.

    YARPP itself has no way to automatically do what you’re asking about. If you just want to use YARPP, I suggest you add the appropriate tags, for example, “house” to your “house of rabits” page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customizing array’ is closed to new replies.