• Sojo

    (@shacher)


    Hi,

    I have a page (/list) that works fine by category.
    [a-z-listing display="posts" post-type="page" taxonomy="category" terms="list"]

    Under it I want one page that filter by onother category (/list/es)
    [a-z-listing display="posts" post-type="page" taxonomy="category" terms="espanol"]

    The pages that I want to show are in the root “.com/my-page”

    The categories are like this

    list
    espanol

    Some of the page has the 2 categories other only list.

    In the first page are shown all, but I want in the second page only to show the filtered by the other category.

    Now appears a list showing the current page in the list.

    Edit:
    It seems that if I change from /list/es to /es works,
    But I would like to know if there is a way to left as /list/es

    • This topic was modified 6 years ago by Sojo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I’m not sure I fully understand the problem you are experiencing. The first shortcode you added in your post above will show all pages that are assigned the list term from the category taxonomy. The second will show all pages that are assigned the espanol term.

    It is important to realise that a post will appear in both listings if they are assigned both list and espanol:

    • A post will only appear in the first list if they are assigned list.
    • A post will only appear in the second list when it is assigned to espanol.
    • A post assigned only espanol will not appear in the first listing.
    Thread Starter Sojo

    (@shacher)

    Hi,

    I thik i didnt explain well, so Im going to give the use that I am going to give to it.

    in /list are all the books (pages with category list)
    and
    in /list/es are only the books in spanish. (pages with category espanol)

    All pages with category espanol have category list, becouse they are still books.

    Maybe I explained better now.

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’m sorry, I still don’t understand what problem you’re facing.

    It might be that you are using the shortcode on a page whose address is used by WordPress for WordPress’ own functionality. Overriding the WordPress in-built mechanisms is difficult and needs a different approach than simply adding the shortcode to a page. You will need to edit your theme, or create a child theme, to add or override a suitable template to hijack the WordPress behaviours. The simplest solution is to just use a different address.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Shows a extrange list’ is closed to new replies.