richarpower
Forum Replies Created
-
Forum: Plugins
In reply to: [Thumbs Rating] Display specific posts from a categoryFor some reason I could not make it to work. Maybe it is because I customized some of the code from your great plugin. I will try to make it work and, when i do, I will post here. Many thanks for the update and for this great support.
Forum: Plugins
In reply to: [Thumbs Rating] Display specific posts from a category“Doesn’t it already show you only the top 10 posts?”
It shows the top 10 most positive rated posts from the 100 available in the category. I would like to show 10 specific posts from this category. For instance:
Lets imagine I have in my category, posts with ids from A to Z and I want to display only the posts A, E, I, O , U.
If I use the filter ‘posts_per_page=”5″’ , it will display the 5 most positive rated posts out of the whole alphabet. It could return posts G,E,U,T etc.
I would like the filter to return only posts A, E, I, O , U, ranked according to votes. In this example, even if post H is more positive rated than post A, it should not be returned because the filter will only return posts A, E, I, O , U.
Thanks.
Forum: Plugins
In reply to: [Thumbs Rating] Fiilter posts by category in Custom Post TypeMany thanks for this help and for this great, light weight, plugin
Forum: Plugins
In reply to: [Thumbs Rating] Fiilter posts by category in Custom Post TypeYou mean this part of the code?
extract( shortcode_atts( array(
‘exclude_posts’ => ”,
‘type’ => ‘positive’,
‘posts_per_page’ => 5,
‘category’ => ”,
‘show_votes’ => ‘yes’,
‘post_type’ => ‘any’,
‘show_both’ => ‘no’,
‘order’ => ‘DESC’,
‘orderby’ => ‘meta_value_num’
), $atts ) );adding sth like this:
‘tax_query’ => array(
array(
‘taxonomy’ => ‘books_taxonomy’,
‘field’ => ‘id’,
‘terms’ => array( 3 )Forum: Plugins
In reply to: [Thumbs Rating] Fiilter posts by category in Custom Post TypeThanks for the quick reply.
When I add category=”74″ ,being 74 the id of the category from my custom post type, the thumbs_rating_top function displays no results at all.
That is why i tried adding the name of my custom category (catlist) instead of “category” in the shortcode as you suggested.
Displays all posts from all categories in my custom post type lists
[thumbs_rating_top type=”positive” posts_per_page=”100″ catlists=”74″ post_type=”lists” show_votes=”no” order=”DESC”]
Displays no post at all
[thumbs_rating_top type=”positive” posts_per_page=”100″ category=”74″ post_type=”lists” show_votes=”no” order=”DESC”]
I assume wp is querying main categories instead of custom post type categories.
Please help.