WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Advanced Category Excluder] page exclusion interferes with template-tag (3 posts)

  1. j.org
    Member
    Posted 5 years ago #

    Before ACE provided page exclusion I excluded some concrete pages (say, with id 1200 and 3000) from a list in my header.php utilizing the template-tag

    wp_list_pages('exclude=1200,3000');

    Immediate after installing the new version of ACE this is broken or at least is overridden in some way. Obviously I can go to plugin config to re-enable exclusion but I need to enable exclusion in various places to achieve the same effect as by using the mentioned template-tag. Furthermore I realized it only after a few days. In the meantime the hidden pages had been visible to everyone.

    So to ensure compatibility with themes I suggest the plugin should respect exclusions made by this (and possible other) tags.

    ~~~ Cheers

  2. Zack Katz
    Member
    Posted 4 years ago #

    You can fix this issue (which has plagued me until now) by adding the following line to your functions.php file:
    remove_filter('wp_list_pages_excludes','ace_list_pages_excludes');

  3. j.org
    Member
    Posted 4 years ago #

    Hi katzwebdesign,

    this is it! You're the man.

    For the interested reader: I guess this line of code completely disables ACE's page exclusion feature, but hey: this is what I wanted :)

    ~~~ Cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic