• I’m having trouble getting a shortcode in a text box from ACF to output the specific post I’m wanting it to pull. These are the code attempts I’ve tried to get to work:

    <?php
    echo do_shortcode( ‘[su_post field=”post_content” post_id=”3837″]’ );
    ?>

    <p><?php get_field(‘post_content’, 3837); ?></p>

    <?php
    $variable = get_field(‘post_content’, $post->3837);
    // do something with $variable
    ?>

    https://www.ads-software.com/plugins/advanced-custom-fields/

  • The topic ‘Trying to add shortcode to text box’ is closed to new replies.