[wp-trac] [WordPress Trac] #63402: Query Posts without URL parameters to avoid running into character limit with many filters
WordPress Trac
noreply at wordpress.org
Tue May 6 19:02:10 UTC 2025
#63402: Query Posts without URL parameters to avoid running into character limit
with many filters
-----------------------------+-----------------------------
Reporter: anghenfil | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Hey,
currently, the REST API only supports GET requests to query posts. This is
fine as long as the query including all filters (e.g. category filters)
don't exceed the 2048 char URL character limit. Some servers will report
an 500 Internal Server Error if exceeding the limit.
This is problematic, especially when using the exclude category filter
which can't be replaced by multiple smaller requests.
There should be an API route to filter posts by body parameters.
Best
anghenfil
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63402>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list