• Resolved WPMystic

    (@wordpressmystic)


    Hi

    I realise your plugin says it is compatible to 3.7.1
    I am using 3.8

    Your plugin is really great, but I have noticed an issue

    if you specify something like pagelist exclude_tree=”7,10″, only the first parameter in the list is used and the rest are ignored

    Based on various articles on the web, it sounds like things have changed in WordPress that might have stopped your functionality from working

    It would be great if we could get this working again as your plugin is very useful

    Also, I thought I could also use the page names rather than the IDs throughout, but that does not seem to work. Perhaps I am misunderstanding this functionality, but it would be great to be able to use page names instead of IDs.

    Thank you in advance

    https://www.ads-software.com/plugins/page-list/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author webvitaly

    (@webvitaly)

    It’s a WordPress bug with exclude_tree parameter. When it will be fixed in WordPress it will start work in Page-List plugin.

    Excluding pages by their names cannot be done for now because [pagelist] shortcode is based on wp_list_pages function and it does not have such functionality.

    Thread Starter WPMystic

    (@wordpressmystic)

    Thank you for that
    I will back off my WordPress version to 3.7.1 and wait until this is fixed

    Thread Starter WPMystic

    (@wordpressmystic)

    Hello

    I am now running my site on WordPress 3.7.1 and the problem is still there

    Just to make sure that I did not have the page IDs wrong, I tried both the following
    pagelist exclude_tree=”7,10″
    pagelist exclude_tree=”10,7″

    In both case only the first one is picked up and the second parameter is ignored

    So it seems that the problem is also in 3.7.1

    Would you be able to provide a fix for this or do I need to find a different plugin to achieve this ?

    Thank you in advance

    Plugin Author webvitaly

    (@webvitaly)

    The problem with exclude_tree param exist in every WordPress version.
    It is WordPress bug which I mentioned earlier.

    You may find different plugin which solve this task.

    And you may share the name of the plugin if you will found it.
    I think it will be useful for other users too.

    Wow, I didn’t realise that bug still persisted, it has been apparently been known about for five years or so and I thought it was supposed to have been patched.

    Anyway I don’t know if it will help in the OP’s case, but wp_list_pages currently has other somewhat odd behaviour that can be exploited.

    If you tell it to exclude a parent page with e.g. exclude=74(I’m talking about a top level page here, I haven’t experimented further down the hierarchy) then its children still need to be displayed so they get listed with the top level pages. However if you add e.g.depth=3 the exclude starts behaving like exclude_tree is meant to and all the children get hidden too. To me that is a bug and I’ve reported it as such, but it is quite a handy one at the moment.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘pagelist exclude_tree="7,10" only take first item’ is closed to new replies.