Making WordPress.org

Opened 4 months ago

Last modified 4 months ago

#8055 new defect (bug)

Category Filter Not Applied in AJAX

Reported by: rahultank's profile rahultank Owned by:
Milestone: Priority: normal
Component: General Keywords: reporter-feedback
Cc:

Description

Currently, the category filtering logic is only implemented inside the PHP shortcode. When an AJAX request is made to fetch posts, the request bypasses this shortcode logic and does not receive the category filter. As a result, AJAX-loaded content ignores the selected category and returns all posts.

Impact:

1.Users see posts from all categories even when a specific category is selected.
2.Breaks expected behavior of category-based browsing via AJAX pagination or load-more.

Change History (2)

#1 @dd32
4 months ago

  • Keywords has-patch removed
  • Milestone Improved Search deleted

Hi @rahultank,

Can you clarify what site / URL you're refering to?

#2 @dd32
4 months ago

  • Keywords reporter-feedback added
Note: See TracTickets for help on using tickets.