• Resolved kamilis

    (@kamilis)


    I’m trying to get a specific subcategory to show up as an alphabetical list. This is the short code I’m using.

    [a-z-listing post-type=”post” a-z-listing taxonomy=”category” terms=”regions”]

    There should be at least two entries that should show up.

    This is a subcategory of the category locations.

    What am I doing wrong?

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

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

    (@diddledani)

    Hi,

    Do you want to show posts that are assigned the term “regions”, or do you want to show terms whose parent is “regions”?

    For posts which are assigned the term “regions” you want:

    [a-z-listing display="posts" post-type="post" taxonomy="category" terms="regions"]
    

    For terms whose parent term is “regions” you want:

    [a-z-listing display="terms" taxonomy="category" parent-term="regions"]
    

    If the listing isn’t showing any results for the relevant shortcode, double check that your term/parent-term has the “slug” of “regions”. If you use the first of the shortcodes above, you should also double-check that there are posts assigned to “regions”.

    You might also be able to show posts which have a term nested underneath the “regions” category with:

    [a-z-listing display="posts" post-type="post" taxonomy="category" parent-term="regions"]
    

    However, I’m not certain that last option works.

    Thread Starter kamilis

    (@kamilis)

    The first code worked, thank you so much, it’s going to make my website look a lot better!

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

The topic ‘Shortcode Not Working’ is closed to new replies.