jQuery-powered recommendations.
View the Project on GitHub oldmill1/post-recommendations-for-wordpress
jQuery-powered recommendations.
As a template tag
$args = array();
wp_recommendations($args);
As a shortcode
[recommend_posts_for_me]
Important: Some arguments differ slightly depending on if you're using the template tag or the shortcode. See options below for more details.
$postID
(string) (optional)— Get recommendations from the post id being passed.
Default: The current post's id
Important: When passing this in the short code, you must pass it like this: post_id=123
$size
(array) (optional)— A two-item array containg with the width and height.
Default: null
Important: When passing this in the short code, you must pass it like this: size=100,100
$numberposts
(integer) (optional)— The number of recommendations to generate.
Default: 6
$orderby
(string) (optional)— The post order.
Default: rand
$show
(bool) (optional)— You may choose to store the DOM structure in a PHP variable by setting this property to false.
Default: true
Important: If you're using shortcodes, you may ignore this value.