• Resolved ncrohde

    (@ncrohde)


    Hello,

    After a recent update of this plugin, my A-Z listing stopped showing all pages on my site, and is only showing pages that are siblings and children of siblings. Is there a new syntax to show all pages?

    Example:

    – Page 1 (Not Shown)
    – – Page 1.1 (A-Z listing)
    – – Page 1.2 (Shown)
    – – Page 1.3 (Shown)
    – – – Page 1.3.1 (Shown)
    – – Page 1.4 (Shown)
    – Page 2 (Not shown)
    – – Page 2.1 (Not shown)
    – – Page 2.2 (Not shown)
    – Page 3 (Not shown)
    – – Page 3.1 (Not Shown)
    – – Page 3.4 (Not Shown)

    • This topic was modified 5 years, 1 month ago by ncrohde.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    I suspect you have been relying on a bug which I have since fixed. The plugin defaults to restricting a “page” listing to “sections” where a section is defined by the top-most page in a hierarchy, in your case “Page 1” because the A-Z listing is on a child page of “Page 1”.

    The current solution, while not ideal, is to add a small bit of PHP code to your theme’s functions.php file, which replaces the sections to consider with an empty list. This causes the plugin to show all pages regardless of hierarchy. Take care to ensure that the code is within a <?php tag, which should be opened on the first line of the file:

    add_filter( 'a-z-listing-sections', '__return_empty_array' );
    
    Thread Starter ncrohde

    (@ncrohde)

    Thanks, Daniel. This works for me. I appreciate your quick support for a workaround for how I’m using the plugin on my site, even if it was a bug I was relying on.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only showing relative pages’ is closed to new replies.