Custom Fields Display in Archive

Support General Custom Fields Display in Archive

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43856
    JenniferJennifer
    Participant

    I'm sort of new, but I've gotten pages down fairly well.

    I'm struggling to get my custom field to display on an archive page. This site uses Beaver Builder/Beaver Themer.

    It's for this page. https://tbmediagroup.com/team-member/

    I have a MB view made that is just simple shows the role. If I just put that it's not pulling the archive and puts them all the same. Here is the code though that I tried to inject. I'm feeling really silly right now... help.

    <h3 class="fl-post-text">[wpbb-if post: mbv name="team-member-role"] </h3>

    #43863
    PeterPeter
    Moderator

    Hello,

    If you put the code into a loop, you might need to get the ID of the post in the loop to get the field value of the post. Following the documentation https://developer.wordpress.org/reference/functions/get_the_id/

    #43890
    JenniferJennifer
    Participant

    I'm inside Beaver Builder and it's pulling the custom post type via a query for title and featured image. It's only not allowing me to input the "team-member-role" which is a custom field. It's a HTML and CSS input area. With this do I have to add another PHP area, seems off because it's already pulling the title and featured image though. (I'm not good in Beaver Builder... I know this wouldn't work like this in Oxygen.)

    #43903
    PeterPeter
    Moderator

    Hello,

    You can contact Beaver builder support if they support creating a single post template in the loop/archive page. If yes, I think you can add the MB View shortcode there. If not, you need to create your own custom loop to display posts and insert anything into the code.

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