• Hello and thank you for your plugin.
    I have 2000 pages on my site and it is very convenient.
    The result is very good: https://www.filmspourenfants.net/liste/

    On the other hand, it displays all of my pages. I would like to be able to display pages belonging only to the following categories:
    a-partir-de-02-ans
    a-partir-de-03-ans
    a-partir-de-04-ans

    a-partir-de-16-ans
    a-partir-de-17-ans
    a-partir-de-18-ans

    https://www.filmspourenfants.net/hubs/a-partir-de-02-ans/

    But that does not work with the codes:
    [a-z-listing numbers=”after” grouping=”numbers” taxonomy=”hubs” terms=”a-partir-de-02-ans”]
    or
    [a-z-listing numbers=”after” grouping=”numbers” taxonomy=”gp_hubs” terms=”a-partir-de-02-ans”]

    Why does not it work?

    Thanks

    The page I need help with: [log in to see the link]

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

    (@diddledani)

    You need to be sure that the term and taxonomy values are correct.

    Go to the admin screen and select the taxonomy containing the term you want to display in the A-Z Listing (e.g. the taxonomy containing the term a-partir-de-02-ans). Check the address bar of your browser, and note the taxonomy name:

    https://example.com/wp-admin/edit-tags.php?taxonomy=category
    

    In the above address the taxonomy is called category and that needs to be inserted into the taxonomy="" bit of the short-code. If your address does not include /edit-tags.php?taxonomy= at all then you’re not viewing a taxonomy. (This plugin can only filter posts by taxonomy terms or by excluding specific post IDs.)

    Now click on the term you want to display in the A-Z Listing and copy the contents of the slug field. This needs to go into the terms="" part of the short-code.

    This should work with any term, multiple terms separated by commas (,), and any taxonomy.

    Thread Starter Trapipo

    (@trapipo)

    Hello and thank you for your answer.

    I did as you told me.
    I have a Taxonomy called “format” and a slug “02-serie”.
    I can edit them from this page:
    https://www.filmspourenfants.net/wp-admin/edit-tags.php?taxonomy=format&post_type=page

    So I put the code
    [a-z-listing post-type="page" taxonomy="format" terms="02-serie"]
    But that does not take into account the setting.
    It should work, right?

    Thread Starter Trapipo

    (@trapipo)

    I just had a doubt: does the selection of taxonomy work with Pages?

    Plugin Author Dani Llewellyn

    (@diddledani)

    You’re right – good catch. There’s a limitation with taxonomies against pages.

    I can alleviate that, partly, by updating the plugin to use get_pages on a more limited basis – currently it uses get_pages for any listing that requests pages as the post type. I’ve worked up some code which I’ll put into a new version 2.1.0 in the coming week, but there will still be an issue if the plugin thinks it needs to show child and grandchild pages of a specific post.

    Thread Starter Trapipo

    (@trapipo)

    Hello and thank you for your anwser.
    I’ll wait for the update ??

    I talk for myself : doesn’t matter if it is child and grandchild. I do not use this functioonnality for now.

    Thanks again and good luck for the next release !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show specific categories’ is closed to new replies.