Extending the Query Loop default fields #324
Replies: 3 comments
-
Just some quick and rough thoughts on data structures for the use case... For artists, there are a few different methods of handling that:
For tracks:
As for extending the Query Loop block, that's generally fairly straightforward in most cases once you have the other pieces in place. |
Beta Was this translation helpful? Give feedback.
-
Here it would be great to start with the approach to what is easiest to accomplish. For instance the artist used an AI tool and have now installed CPT UI and Advanced Custom Fields and has been exploring those tools. |
Beta Was this translation helpful? Give feedback.
-
Topic approved, conversation continues on the issue |
Beta Was this translation helpful? Give feedback.
-
Currently the Query Loop will show the default fields of Title, Featured image, date and excerpt.
It would be helpful to extend the Query Loop to show additional fields.
A use case.
An artist has an album post. It uses the standard fields.
Title = album name
Featured image = album cover
Excerpt = a description of the album
Date = date when the album came out
He would like to add artists whom contributed to the album.
He especially would like to add album tracks.
This means two additional fields:
Contributed to album
and
tracks
As I see it one would need to define specific blocks that will be seen in the Album preview page where the Query loop would also show these specific blocks.
It would actually be very helpful to have two methods for this. Likely the regular Json file and code snippets. Code snippets would be an easy way to add a snippet directly to the web site without even having access to the files outside of WordPress. Having a Code snippet plugin one could just add the snippet turn it on and see the result. Go forth and back between the result and the snippet to easily adjust the code.
Beta Was this translation helpful? Give feedback.
All reactions