• I have an Avada site, which I wanted to add short codes to display my info. The editors will have ONLY access to the Option page section (via ACF). One simple design,

    <h2>Editors Front Page</h2>
    <h1 style=”color:red; margin:15px, width:200px”>[my_fptitle]</h1>

    BUT when saved, the h1 is totally alone, and the shortcode is displayed outside.

    The second screenshot, I made a simple design, but the shotcode does not show inside the design also.

    add_filter('acf/format_value/type=Wysiwyg Editor', 'my_fpage_shortcode', 20, 3);
    function my_title_shortcode() { 
        $myfield = the_field('title', 'option');
        return $myfield ;
    }
    add_shortcode( 'my_title', 'my_title_shortcode' );

    Any help will be appreciated,

    • This topic was modified 3 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Short codes Display outside design?’ is closed to new replies.