• Resolved richenginner

    (@richenginner)


    Hello i have a wordpress theme and i need use a shortcode into custom field.

    Its a line of my code: (Title of Tab)

    <?php if ( get_post_meta($post->ID, 'part3', true) ) : ?>
    
                <li><a href="#tab_grubu_3-3"><span><b><strong>Descargalo</strong></b></span></a></li>
    
                <?php endif; ?>

    Second Line: (Key and content of Custom Field)

    <?php if ( get_post_meta($post->ID, 'part3', true) ) : ?>
    
          <div id="tab_grubu_3-3" class="clearfix">
    
            <div class="video">
    
              <?php $key="part3"; echo get_post_meta($post->ID, $key, true); ?>
    
            </div>
    
          </div>
    
          <?php endif; ?>

    How to allow a shortcode in this code?

    Thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode in Custom Field’ is closed to new replies.