Site logo

Archived topic

Post Meta Field Names with Dynamic Text Types

4 replies · Started by Jeff on September 20, 2021

Viewing posts 1–5 of 5

Using GenerateBlocks to add a post's meta info, I've run into a challenge with post navigation. I assume I'm supposed to use the dynamic text type "post meta" because the specific information I want to generate isn't an option, but then I need the "meta field name." For navigation, I assume I'd need four: previous entry title, previous entry link, next entry title, and next entry link.

Alas, I can't find any obvious reference in WordPress or Generate Blocks.

Any help pointing me to such a reference, or at the least to those four field names as they'd be used in GenerateBlocks' dynamic text type?

Figured this out by looking at some of the templates.

Element type: Post Navigation

Dynamic text type: Title
Dynamic link type: Single Post
Source: Previous Post or Next Post.

Hi Jeff,

Thanks for letting us know. Glad you figured it out. Let us know if you need further help. :D

Is there some resource for all the standard "meta field name"s? While what I needed wasn't in that particular area, it might be nice to have that available.

While there's no organized listing of all meta of a post, if you're familiar with PHP, you can try doing a var_dump(get_post_meta(get_the_ID())); hooked on the front-end of the site when you're doing tests to see the post meta of a page.

Read more about get_post_meta() here - https://developer.wordpress.org/reference/functions/get_post_meta/

This archived topic is closed to new replies.