Template to display listing Categories and sub categories

  • Kiran
    Kiran
    Elite Member
     
    433 points

    I would like to create an archive page for all the categories and subcategories with the count of no. of listings

    Ex:
    Categorie(12)
    -Sub Categorie1(45)
    -Sub Categorie2(5)
    Categorie 2 (24)
    -Sub Categorie1(10)
    -Sub Categorie2(65)

    How to achieve this for the listings in directory theme – for listings


    Richard Bonk
    Richard Bonk
    Super Guru
     
    2,738 points

    Create a page with ‘Taxonomies’ template. Then visit that page and select ‘Categories’ from the drop down (the page will then be setup and will display the list of categories).


    Kiran
    Kiran
    Elite Member
     
    433 points

    there is no taxonomies template in responsive theme


    Mark Fail
    Mark Fail
    Super Guru
     
    12,226 points

    create a normal wordpress page and copy/paste the code below;

    [TAXONOMY name=’listing’]


    Aaron
    Aaron
    Guru
     
    885 points

    How awesome is that, thanks Mark.


    Mark Fail
    Mark Fail
    Super Guru
     
    12,226 points

    also for the count to display

    [TAXONOMY name=’listing’ count=true icon=true]


    Mark Fail
    Mark Fail
    Super Guru
     
    12,226 points

    Aaron :)

    There are a few shortcodes in the new one, will add more shortly also.


    Mark Fail
    Mark Fail
    Super Guru
     
    12,226 points

    also try;

    [CATEGORIES]

    that will be easier


    Kiran
    Kiran
    Elite Member
     
    433 points

    Thanks mark,

    no.of listing are not displayed shows as merchant
    categories and subcategories all are mixed with the above shortcode.

    i want to achieve like this (A-Z listing)

    A Categorie(12)
    -A Sub Categorie1(45)
    -B Sub Categorie2(5)
    B Categorie 2 (24)
    -Sub Categorie1(10)
    -Sub Categorie2(65)


    Kiran
    Kiran
    Elite Member
     
    433 points

    [CATEGORIES] with this i am able to see the desired result without count


    Mark Fail
    Mark Fail
    Super Guru
     
    12,226 points

    :)


    Mark Fail
    Mark Fail
    Super Guru
     
    12,226 points

    there is no count for sub cats as the WP query for pad_count (top count only)


Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.