The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Using Shortcode in an ACF Section

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #148753

    I have the WordPress theme simplemag from themeforest.

    When creating pages there is a page composer with predefined sections.

    One of those sections is a featured post slider. I figured that changing and duplicating that section to allow me to choose which post category to show slides from would be too difficult so I got the Royal Slider plugin which has shortcodes.

    The page composer also has a code section which will take HTML, JS, and Video Embed code. What I would like to do is extend that to also parse the shortcode for the sliders.

    I have looked and have not found any resources that show me how I might approach this.

    Here is the code for the section:

    Thanks in advance for your help.


    Never Mind. I looked up ome ACF functions and used the following:

    <?php $content = get_sub_field( 'ad_banner_code' ); 
            echo do_shortcode($content);?>

    Hi Shart,

    Having the same problem trying to insert a shortcode from instagram imbed. where did you add this code?



Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.