Making WordPress.org

Opened 14 months ago

Last modified 14 months ago

#8055 new defect (bug)

Category Filter Not Applied in AJAX

Reported by: rahultank Owned by:
Priority: normal Milestone:
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
14 months ago

  • Keywords has-patch removed
  • Milestone Improved Search

Hi @rahultank,

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

#2 @dd32
14 months ago

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