WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Customizing array (4 posts)

  1. Dezio
    Member
    Posted 1 year ago #

    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).

    Thanks

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. Dezio
    Member
    Posted 1 year ago #

    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?

    Regards

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.