• I’m trying to get a post to show up via a text box through Advanced Custom Fields, but am having no luck. Here are the code snippets 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
    ?>

    The last one outputs everything after the ->, while the others present no output.

    Any ideas?

    https://www.ads-software.com/plugins/shortcodes-ultimate/

  • The topic ‘Shortcodes in Plain Text Box/Advanced Custom Fields’ is closed to new replies.