advanced custom fields not showing in tab

Home Page Forums WooCommerce Custom Tabs advanced custom fields not showing in tab

This topic contains 3 replies, has 2 voices, and was last updated by  WebshopLogic 5 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5249

    Nicholas
    Participant

    how can i get advanced custom fields to show in a custom tab?

    example ;
    <?php if( get_field(‘breederbio’) ): ?>
    <p><b>About the breeder…</b> <?php the_field(‘breederbio’); ?></p>
    <?php endif; ?>

    only “about the breeder” shows, not the field.

    #5250

    WebshopLogic
    Keymaster

    Hi Nicholas,

    You cannot enter php code into your wp content by entering it on the WP Admin area.
    You can write php program files and use short codes to insert the content generated by your php program into your posts or pages, or custom tabs.

    Or you may use “IM Front End Form Extension for ACF” plugin in the WordPress plugin directory, that can create shortcodes for your ACF forms. (I have not used it yet)

    The shortcodes can be entered into custom tab fields in WooCommerce Custom Tabs Pro plugin.

    I hope this information is useful to solve this problem.

    Peter Rath
    WebshopLogic

    #5297

    Nicholas
    Participant

    thank you very much, you pointed me in the right direction. one last question when i set a global tab it adds text boxes on add product page. is there a way i can not show those boxes.

    #5338

    WebshopLogic
    Keymaster

    Unfortunately I do not understand what do you mean “is there a way i can not show those boxes.”
    Please give us a more detailed explanation of this questions.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.