[wp-trac] [WordPress Trac] #62014: Editor: Add a 'format' parameter to query to enable filtering post formats in the Query Loop block

WordPress Trac noreply at wordpress.org
Tue Sep 17 01:42:22 UTC 2024


#62014: Editor: Add a 'format' parameter to query to enable filtering post formats
in the Query Loop block
-------------------------------------------------+-------------------------
 Reporter:  poena                                |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.7
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-testing-info needs-    |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 Am I able to clarify the intent a little more here.

 If I set up a Query Loop with the following:

 * Categories: some-category
 * Tags: some-tag
 * Post Format: link

 Is the intention that it will perform the `AND` pseudo query `post format
 == link AND ( post tag == some-tag OR post category == some-category`)?

 Or is the intention that it will perform the `OR` pseudo query `post
 format == link OR post tag == some-tag OR post category == some-category`?

 Taxonomy queries within `WP_Query` are really flexible in that they allow
 for a combination matching the first option but I'm not sure if the REST
 API is as flexible, @TimothyBlynJacobs are you able to provide some
 guidance on this?

 Once I hear back on whether it's an OR or AND, I can follow up further
 with code review on the pull request.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62014#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list