Skip to content
Public Ticket #15351

sticky post don't count the number of homepage posts.

Conversation thread

PenciDesign replied

Staff Reply

Hi,

Yeah, there is no way to do that because WordPress doesn't support to do that inside the query from itself..

Best Regards,

PenciDesign

tdkevin replied

Customer Reply

So,

its no other way to satisify below situation?
remain the Sticky posts on top, and the number of homepage posts is correct?

eg: if setting the number of homepage posts 7 and the Sticky posts number is 3, then it show the Sticky posts on top and normal 4 post follow.

PenciDesign replied

Staff Reply

Hi,

Yeah, WordPress has told about this issue from their end - check this image: http://prntscr.com/wf1u62

So, if you using Sticky posts, it will auto added at the top of the query and it can't be changed.

If you using ignore_sticky_posts attr on the query, it will ignore all the sticky posts and display posts as normal - so it's no different with disabling sticky posts.

Best Regards,

PenciDesign

tdkevin started the conversation

Conversation Start

Hi all.

I use soledad theme to develop a blog.

But I met a problem, my sticky post don't count the number of homepage posts.

eg : I set the "Amount of Posts Shown Per Page on Homepage" to 4 , but the homepage will show 7 article because the sticky post have 3. the sticky post don't count the number of Amount of Posts Shown Per Page on Homepage.

how can I solve this ?

thanks a lot, my choose style is Magazine Style 1.

URL: https://vincehouse.com/

Want to join this conversation or access attachments? Sign in first.