Make WordPress Core

Opened 2 years ago

Last modified 23 months ago

#57302 new defect (bug)

Twenty Twenty-Three: Query loop pattern not working

Reported by: hiren1094's profile hiren1094 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-screenshots needs-patch
Focuses: administration, template Cc:

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 2 years ago.
Screen Short Added
Admin-View.png (266.4 KB) - added by hiren1094 2 years ago.
Admin View
Front-View.png (39.6 KB) - added by hiren1094 2 years ago.
Front View
Screen Shot 2023-01-06 at 10.02.41 AM.png (38.8 KB) - added by mikethicke1 2 years ago.
"Inherit query from template" toggle

Download all attachments as: .zip

Change History (10)

@hiren1094
2 years ago

Screen Short Added

@hiren1094
2 years ago

Admin View

@hiren1094
2 years ago

Front View

#1 @hiren1094
2 years ago

  • Keywords has-screenshots added; needs-screenshots removed

#2 @haritpanchal
2 years ago

  • Component changed from Query to Bundled Theme
  • Keywords needs-patch added

@mikethicke1
2 years ago

"Inherit query from template" toggle

#3 @mikethicke1
2 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
2 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.


2 years ago

#6 @SergeyBiryukov
23 months ago

  • Summary changed from Query loop pattern not working in Twenty Twenty-Three to Twenty Twenty-Three: Query loop pattern not working
Note: See TracTickets for help on using tickets.