WordPress.org

Forums

[Plugin: Flexi Pages Widget] Sub-pages disappear in version 1.6 / wp 2.9.1 (9 posts)

  1. Michelle
    Member
    Posted 5 years ago #

    Using version 1.5, everything works great.

    After upgrading to v 1.6:

    I exclude top-level pages throughout by using ctrl to select each in the widget, because I want to show only strictly related sub-pages in my sidebar on each page (not top-level nav).

    Nothing appears.

    If I include all the top-level pages, everything appears fine. It's as if by excluding the top-level pages, I've excluded everything beneath them too.

    http://wordpress.org/extend/plugins/flexi-pages-widget/

  2. Emily
    Member
    Posted 5 years ago #

    This happened to me, too. The subpages no longer show in the menu when I'm on the parent page. It used to. How to fix?

    Edit: Never mind, I discovered that I must include all of the desired subpages, as well. This is not good, as I want them to be included automatically. I don't want to have to update the menu every time a page is added to the site. Is there any way around this? Would it work if I exclude pages instead of including them?

  3. Robert Simpson
    Member
    Posted 5 years ago #

    I'm running 1.6.1 on WP2.9.2 and the widget is disappearing completely when I have all of the top level pages excluded.

    Any ideas?

    Cheers,
    Robert

  4. Robert Simpson
    Member
    Posted 5 years ago #

    I'm going back to fold_page_list until I can resolve this.

    Cheers,
    Robert

  5. Robert Simpson
    Member
    Posted 5 years ago #

    Still experiencing this running 1.6.2 on WP2.9.2.

  6. Robert Simpson
    Member
    Posted 5 years ago #

    Just upgraded to 1.6.3 and the issue remains.

  7. mpmchugh
    Member
    Posted 5 years ago #

    This is a real problem, as I often only display subpages in particular case, so my menus disappeared entirely. Hope it get's fixed soon.

    -mpm

  8. paul_mhs
    Member
    Posted 5 years ago #

    (Please excuse any poor formatting - this is my first post :-)

    I was also hit by this problem of disappearing 'top pages' etc. I think a solution is a small edit to the script to remove the page ID and then successively each parent page ID from the list of exclusions.

    The following seems to work for me:

    (In flexi-pages-widget.php 1.6.3) where you have lines 291-4:

    if($exinclude == 'include')
            $include = $exinclude_values;
        else
            $exclude = $exinclude_values;

    replace line 294 with:

    {
            $exclude = $exinclude_values;
            $exclude_elts = explode(",", $exclude);
            $hierarchy=flexipages_get_currpage_hierarchy();
    	foreach ($hierarchy as $inc_page_id)
         	   {
               $exclude_elts=array_diff($exclude_elts,array($inc_page_id));
               }
           $exclude=implode(",",$exclude_elts);
        }

    Hopefully menus will reappear. If signs are promising, then all being well Srini G will be able to release an updated version.

    - Paul

  9. khron
    Member
    Posted 4 years ago #

    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..

Topic Closed

This topic has been closed to new replies.

About this Topic