Make WordPress Core

Opened 4 years ago

Closed 3 weeks ago

Last modified 3 weeks ago

#57302 closed defect (bug) (wontfix)

Twenty Twenty-Three: Query loop pattern not working

Reported by: hiren1094 Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version:
Severity: normal Keywords: has-screenshots close
Cc: Focuses: administration, template

Description

Hello,

I am not able to see a selected (First) Query Loop pattern of grid view on the front side in the Twenty Twenty-Three theme

Attachments (4)

Query-Pattern.png​ (458.3 KB ) - added by hiren1094 4 years ago.
Screen Short Added
Admin-View.png​ (266.4 KB ) - added by hiren1094 4 years ago.
Admin View
Front-View.png​ (39.6 KB ) - added by hiren1094 4 years ago.
Front View
Screen Shot 2023-01-06 at 10.02.41 AM.png​ (38.8 KB ) - added by mikethicke1 4 years ago.
"Inherit query from template" toggle

Download all attachments as: .zip

Change History (13)

@hiren1094
4 years ago

Screen Short Added

#1 @hiren1094
4 years ago

  • Keywords has-screenshots added; needs-screenshots removed

#2 @haritpanchal
4 years ago

  • Component Query → Bundled Theme
  • Keywords needs-patch added

#3 @mikethicke1
4 years ago

It appears that if you add a query loop to a page that doesn't provide query context, and the "Inherit query from template" toggle is on, then the query will run in the editor but not on the front end. Setting that toggle to off makes the query run correctly.

This seems at best a very poor design decision. Either there should be some default context that works for all templates, or that toggle should be set to off by default. And the query results in the editor should match those in the front end.

#4 @hiren1094
4 years ago

Yes, It will work when I off "Inherit query from template" this setting but really it should be off by default and This "Insert query from template" title should be user-friendly and highlighted which is easily understood for user.

This ticket was mentioned in ​Slack in #core by hiren1094. ​View the logs.


4 years ago

#6 @SergeyBiryukov
4 years ago

  • Summary Query loop pattern not working in Twenty Twenty-Three → Twenty Twenty-Three: Query loop pattern not working

#7 @karmatosed
3 weeks ago

  • Keywords close added; needs-patch removed

Thank you for all the input on this ticket so far. I am going to see how we can get some conclusion to this. This is not a Twenty Twenty-Three problem. The Query loop is set to use the template’s query. A normal page does not have that query, so the front end shows nothing. Turning that setting off makes the posts show.

The default and the label belong in the Query block. I suggest we close this. My apologies for someone wrongly adding the wrong labels previously.

#8 @karmatosed
3 weeks ago

  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → closed

I am going to go through and actually close this as I recommended, thank you everyone for your contributions on this. It doesn't mean tickets can't be reopened though if they are closed, for now though that is the decision here.

#9 @sabernhardt
3 weeks ago

I'm not sure I understand the issue to know whether it still occurs, but I had checked the theme's templates.

These four set inherit to true:

This sets inherit to false:

Note: See TracTickets for help on using tickets.