• dome90uk

    (@dome90uk)


    Hi,

    I have been trying to split the Secondary HTML content produced by using this plugin and using this method.

    The code used to split the content is below

    // split content at the more tag and return an array
    function split_content() {
        global $more;
        $more = true;
        $content = preg_split('/<span id="more-\d+"><\/span>/i', the_content('more'));
        for($c = 0, $csize = count($content); $c < $csize; $c++) {
            $content[$c] = apply_filters('the_content', $content[$c]);
        }
        return $content;
    }

    I have tried using “get_secondary_content” & “the_secondary_content” as well as other variations in place of “the_content(‘more’)”

    Is it possible to split the output of Secondary HTML content?
    Any help appreciated, thanks.

The topic ‘[Plugin – Secondary HTML Content] Split the Secondary Content’ is closed to new replies.