How to display same field to different location

Support General How to display same field to different locationResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33258
    PsekaPseka
    Participant

    Hello

    Is it possible to create a CPT and add fields and display the field I want in multiple page on my website ?

    For example :

    CPT = CEO Phone number

    I want to show this phone number in my contact page but also in the team page.

    Thanks for your help.

    Ps : I'm using Oxygen Builder

    #33263
    Long NguyenLong Nguyen
    Moderator

    Hi Pseka,

    Yes, it is possible. You need to pass the post ID to the helper function to output the field value associated with that post. For example:

    $value = rwmb_meta( 'field_id', '', 12345 );
    echo $value;

    Read more on the documentation https://docs.metabox.io/displaying-fields/#using-code

    If you use the Oxygen Builder, please contact their support to ask for implementing the code.

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