Site logo

Archived topic

Inserting custom metadata into query loops

5 replies · Started by Brian on July 19, 2022

Viewing posts 1–6 of 6

Hi on our current site we have a line of custom meta data, you can see it on the posts
https://sluggerotoole.com

This data:
Brian O'Neill on July 18, 2022, 12:55pm 750 Comments | Readers 4096

I am working on a new layout using query loops
https://sluggerotoole.com/home/

I am trying to work out how to insert the custom meta data into the query loops, any ideas?

In the private area I have added the existed code we have in functions.php for reference.

Hi there,

you can add a Headline Block, and set its Dynamic Data options to:

Data source: Current Post
Content source: Post Meta
Post meta field: Add your meta field name.

Note on the meta field, it will show in the list if the REST API is supported with whatever method that field was registered. If its not in the list, just type it in.

Thanks David, can you give me an idea of what meta field name value should be or where I can find it?

Try views.

Hi, i tried the above version. Cant bring it to work. The field is callend 'ausstattung' but i cant put it in there. The field ausstattung was made with onboard individual fields from wordpress.
How can I achieve to bring individual fields into the query loop?

Got it, forget to add 'ausstattung' as a custom field in the data option.

This archived topic is closed to new replies.