• Resolved sorceweb

    (@sorceweb)


    I am unable to display some custom fields related to a custom post type. [position] and
    [phone] just display as [position] and [phone] and don’t display the data which they should.

    <ul>[posts]
    <li>
    <div class="content">
    <div class="w4pl_post_title">[post_title]</div>
    [position]
    [phone]
    </div>
    [more text="Read more..."]
    </li>
    [/posts]</ul>
    

    From code above is there anything I am missing?

    Matt

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    To display meta information, use post_meta tag –

    [post_meta key="position"]
    [post_meta key="phone"]

    Thread Starter sorceweb

    (@sorceweb)

    Thanks Shazzad.

    How would i display an email entered into a custom field as a clickable html email?

    <ul>[posts]
    <li>
    [post_thumbnail size="150" return=""]
    <div class="text-content">
    <div class="teamtitle">[post_title]</div>
    <div class="position">[post_meta key="position"]</div>
    <div class="phone">[post_meta key="phone"]</div>
    <div class="email">[post_meta key="email"]</div>
    </div>
    [more text="Read more..."]
    </li>
    [/posts]</ul>

    https://sorce.co/pronegwp/the-team

    Thread Starter sorceweb

    (@sorceweb)

    it’s ok, i figured it:

    <div class=”email”>[post_meta key=”email”]</div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Custom Post Field’ is closed to new replies.