• Resolved redkite

    (@redkite)


    My client noticed this yesterday – on the front page of her site Posts in Sidebar is used in the sidebar (Featured Posts) and in the content area (Popular Posts).

    The number of posts in each is set to 3, but only 1 is showing now under Popular Posts – it doesn’t change no matter how many posts I specify in the shortcode. When I turned on the debugger, it didn’t show any errors in the home page.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter redkite

    (@redkite)

    Sorry – now I have the debug info if this helps.

    Posts in Sidebar Debug
    Environment information:
    
    Site URL: https://dogsbestlife.com
    Page URL: https://dogsbestlife.com
    WP version: 5.8.1
    PiS version: 4.16.3
    Widget ID: pis_posts_in_sidebar--1
    Cache: not active
    Queries: 163 queries in 0.694 seconds
    The parameters for the query:
    
    post_type: post
    post__in:
    0: 20552
    1: 893
    2: 3180
    category_name: home-page
    posts_per_page: 3
    orderby: date
    order: DESC
    post_status: publish
    ignore_sticky_posts: true
    The options of the widget:
    
    post_type: post
    posts_id: 20552, 893, 3180
    cat: home-page
    number: 3
    orderby: date
    order: DESC
    post_status: publish
    has_password: null
    ignore_sticky: true
    orderby_same_cat: date
    order_same_cat: DESC
    post_type_same_cat: post
    orderby_same_tag: date
    Plugin Author Aldo Latino

    (@aldolat)

    Hello,
    I see that you’re telling the plugin to get these three posts by ID:
    – 20552
    – 893
    – 3180

    Then, you’re telling that the posts must be under the home-page category.

    Are you sure that these posts are under this category?

    Looking at your site, only the post with ID=893 has the category home-page.

    For this reason Posts in Sidebar displays only one post.

    Thread Starter redkite

    (@redkite)

    That makes complete sense – thank you!

    Plugin Author Aldo Latino

    (@aldolat)

    You’re welcome!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Number of posts is wrong’ is closed to new replies.