Title: [Plugin &#8211; Secondary HTML Content] Split the Secondary Content
Last modified: August 20, 2016

---

# [Plugin – Secondary HTML Content] Split the Secondary Content

 *  [dome90uk](https://wordpress.org/support/users/dome90uk/)
 * (@dome90uk)
 * [15 years ago](https://wordpress.org/support/topic/split-the-secondary-html-content-plugin/)
 * Hi,
 * I have been trying to split the Secondary HTML content produced by using this
   [plugin](http://wordpress.org/extend/plugins/secondary-html-content/) and using
   this [method](http://blogs.sitepoint.com/split-wordpress-content-into-multiple-sections/).
 * 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.

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)
 * [secondary](https://wordpress.org/support/topic-tag/secondary/)
 * [split](https://wordpress.org/support/topic-tag/split/)

 * 0 replies
 * 1 participant
 * Last reply from: [dome90uk](https://wordpress.org/support/users/dome90uk/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/split-the-secondary-html-content-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
