• Hi,

    Is it possible to add the showhide shortcode via PHP? At this moment I use:

    $string = ”;

    $shortcode = ‘showhide type=”post” more_text=”More” less_text=”Less”‘;
    $string .= do_shortcode(‘[‘.$shortcode.’]’);

    $string .= ‘TEXT’;

    $shortcode2 = “/showhide”;
    $string .= do_shortcode(‘[‘.$shortcode2.’]’);

    return($string);

    The firdt shortcode is recognized just fine, but then it goes wrong :-(:

    More
    TEXT[/showhide]

    Any ideas?

    Kind regards,

    Martijn

  • The topic ‘Add showhide shortcode via PHP’ is closed to new replies.