Title: khron's Replies | WordPress.org

---

# khron

  [  ](https://wordpress.org/support/users/khron/)

 *   [Profile](https://wordpress.org/support/users/khron/)
 *   [Topics Started](https://wordpress.org/support/users/khron/topics/)
 *   [Replies Created](https://wordpress.org/support/users/khron/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/khron/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/khron/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/khron/engagements/)
 *   [Favorites](https://wordpress.org/support/users/khron/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Flexi Pages Widget] Sub-pages disappear in version 1.6 / wp 2.9.1](https://wordpress.org/support/topic/plugin-flexi-pages-widget-sub-pages-disappear-in-version-16-wp-291/)
 *  [khron](https://wordpress.org/support/users/khron/)
 * (@khron)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-flexi-pages-widget-sub-pages-disappear-in-version-16-wp-291/#post-1346440)
 * Hi Paul,
 * I’m trying to modify your code so that the reverse can work: when you include
   a certain page that has children, those children are included as well.
 * I have this:
 *     ```
       if($exinclude == 'include') {
       	$include = $exinclude_values;
       	$include_elts = explode(",", $include);
       	$hierarchy=flexipages_get_currpage_hierarchy();
       	foreach ($hierarchy as $inc_page_id)
       	{
       	$include_elts=array_diff($include_elts,array($inc_page_id));
       	}
       	$include=implode(",",$include_elts);
       } else
       	$exclude = $exinclude_values;
       ```
   
 * and I’m calling it with
 * `flexipages('include=14,16,20&sort_column=ID&sort_order=ASC&show_subpages=1');`
 * where 14, 16, and 20 all have 3 or more children.
 * I can’t seem to get it working..

Viewing 1 replies (of 1 total)