neve icon indicating copy to clipboard operation
neve copied to clipboard

Infinite scroll loads normal posts on CPT archive

Open irinelenache opened this issue 2 years ago • 0 comments

Description

If i have a CPT created, an archive page for it and the Infinite scroll setting enabled, the new loaded posts will be normal posts instead of CPT posts https://vertis.d.pr/v/uLTiUx - The posts loaded on the CPT archive are the same that were loaded on the Blog archive

Ticket - https://wordpress.org/support/topic/infinite-scroll-on-custom-post-type-archive-page/

Step-by-step reproduction instructions

  1. Create a CPT and enable the archive for it
  2. Create some posts for that type so the Infinite scroll can be triggered (You can also decrease the posts per page number in Dashboard > Settings > Reading)
  3. Go to the CPT archive and check which posts are rendered when the infinite scroll is triggered

Screenshots, screen recording, code snippet or Help Scout ticket

https://vertis.d.pr/v/uLTiUx

Environment info

Neve 3.7.3 / WordPress 6.4 / PHP 8

Is the issue you are reporting a regression

No

irinelenache avatar Nov 08 '23 13:11 irinelenache