• Hi,

    I’ve been searching the forum before asking and found another post about it but the person solved the problem on their own so I couldn’t get an answer to my question (and couldn’t figure it out on my own).

    I’m working on a website where people will be able to post some articles from frontend. In order not to have to create new categories everytime they post an article (I will have to at some point but I want to keep it to the minimum), I would like to create the categories and subcategories in advance. Problem is, doing so, categories/subcategories are listed even when they have no entries.
    So, my question is: how can I hide empty categories?

    And another question (if you can’t help me with this one I will continue to list only the main categories for now and will find another way to achieve it later), is there a way to list the parent category in one column and the corresponding child categories in another one, like this > https://cosplay.com/series/A (I don’t need the 2 columns in the middle)?

    Thank you for your time and help!

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

    (@diddledani)

    Hi,

    The first problem is fixable by adding hide-empty-terms="true" to your shortcode:

    [a-z-listing display="terms" taxonomy="category" hide-empty-terms="true"]
    

    Unfortunately I don’t have a solution to your second question :-(.

    Thread Starter vinem

    (@vinem)

    Hi again,

    Thank you for your help!

    It’s ok you can’t help me with my second question, I will find a solution later ??

    Nice website.
    I’m interested to know how you did the pagination on letters pages ?

    I hope you can help me with that

    Regards
    Bastien

    Thread Starter vinem

    (@vinem)

    @bastienmichel

    Salut,
    Malheureusement le lien que j’ai mis n’est pas mon site, je n’ai pas mis de pagination sur le mien mais le plus simple serait d’ouvrir un sujet pour poser la question à l’auteur du plugin directement ??

    Bon courage !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide when no post in category’ is closed to new replies.