Forums

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
    Posts
  • #148753
    shart291
    Participant

    I have the WordPress theme simplemag from themeforest.http://themeforest.net/item/simplemag-magazine-theme-for-creative-stuff/4923427

    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: http://shart290.kd.io/code.txt

    Thanks in advance for your help.

    #148757
    shart291
    Participant

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

    <?php $content = get_sub_field( 'ad_banner_code' ); 
            echo do_shortcode($content);?>
    
    #173741
    theshapersblog
    Participant

    Hi Shart,

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

    Cheers

    Jp

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