Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $post_id = get_the_ID();
- if(function_exists('yarpp_related'))
- yarpp_related(
- array(
- 'post_type' => array('download'),
- 'past_only' => false,
- 'weight' => array(
- 'body' => 1,
- 'title' => 2, // larger weights mean this criteria will be weighted more heavily
- 'tax' => array(
- 'download_tag' => 1,
- // put any taxonomies you want to consider here with their weights
- 'download_category' => 1,
- )
- ),
- 'limit' => 5,
- /*'require_tax' => array(
- 'download_tag' => 1 // for example, this requires all results to have at least one 'post_tag' in common.
- ),*/
- // The threshold which must be met by the "match score"
- //'threshold' => 2,
- 'order' => 'score DESC'
- )
- );
- // 'template' 'limit' 'order'
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement