• Hi,

    My site features user-generated posts using gravity forms. When users submit a post, they fill out custom fields like “author’s contact address” etc along with the title, body and keywords. I want these custom fields to be visible on their posts, however currently they are not.

    I have been attempting this for weeks, and I believe the solution has something to do with the theme post template and displaying post meta-data using the the_meta() template tag

    Any help? Thanks ??

Viewing 1 replies (of 1 total)
  • Theme Author Richie KS

    (@rkcorp)

    yes, but you need to know what’s the meta field ‘key’ for the custom field. i would suggest check the meta field ‘key’ and add something like this.
    probably in lib/template/author-bio.php

    <?php
    $cf_author_address = get_post_meta( get_the_ID(), 'key_1', true );
    echo $cf_author_address;
    ?>

    ‘key_1’ is the meta field for the ‘author address’

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying custom fields in posts’ is closed to new replies.