Title: Customizing array
Last modified: August 20, 2016

---

# Customizing array

 *  Resolved [Dezio](https://wordpress.org/support/users/dezio/)
 * (@dezio)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/customizing-array/)
 * 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/](http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/customizing-array/#post-3364131)
 * I’m sorry but I don’t understand what you’re trying to do. Can you explain again?
 *  Thread Starter [Dezio](https://wordpress.org/support/users/dezio/)
 * (@dezio)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/customizing-array/#post-3364142)
 * 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
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/customizing-array/#post-3364199)
 * 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.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/customizing-array/#post-3364199)
 * Status: resolved