• Resolved richarpower

    (@richarpower)


    Hi,

    I have a cetegory with 100 posts. I would like to display only 10 specific posts from this category with the function thumbs_rating_top.

    I know there is an exclude posts feature, but I would have to exclude 90 posts from it to be able to display only the 10 posts out of the 100 I intend to.

    Is there a way to do something like this?

    [thumbs_rating_top type=”positive” show_only_posts: “133,2,54,234” posts_per_page=”10″ post_type=”post” show_votes=”no” order=”DESC”]

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    Hello,

    I am not sure why this is not enough

    [thumbs_rating_top type=”positive” posts_per_page=”10″ post_type=”post” show_votes=”no” order=”DESC”]

    Doesn’t it already show you only the top 10 posts?

    Thread Starter richarpower

    (@richarpower)

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

    Plugin Author Ricard Torres

    (@quicoto)

    Ah, I see.

    I’ve pushed a new version (3.4) of the plugin.

    Please update and try to include include_posts in the shortcode. It uses post__not_in from https://codex.ww.wp.xz.cn/Class_Reference/WP_Query

    Check the FAQ if needed https://ww.wp.xz.cn/plugins/thumbs-rating/

    Let me know how it goes.

    Thread Starter richarpower

    (@richarpower)

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

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

The topic ‘Display specific posts from a category’ is closed to new replies.