Site logo

[Resolved] Post Meta Field Names with Dynamic Text Types

Home Forums Support [Resolved] Post Meta Field Names with Dynamic Text Types

Home Forums Support Post Meta Field Names with Dynamic Text Types

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1937259
    Jeff

    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?

    #1937316
    Jeff

    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.

    #1937323
    Elvin
    Staff
    Customer Support

    Hi Jeff,

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

    #1937339
    Jeff

    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.

    #1937345
    Elvin
    Staff
    Customer Support

    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/

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.