Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By sexd

Thread: Showing sub-categories on parent category page

  1. #1
    Thread Starter
    Expired Customer sexd's Avatar
    Join Date
    Dec 2013
    Location
    United Arab Emirates
    Posts
    107
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Showing sub-categories on parent category page

    Hi I wonder how I should proceed to display my sub categories on the parent category page.

    The reason I am posting this in the help section is due to the fact that vantage isn't using standard wp categories but listing categories.


    To achieve the display of normal wordpress sub-categories the user is supposed to add the following code in the achieve-listing.php file:

    <?php
    if ( is_category() ) {
    $this_category = get_category($cat);
    if($this_category->category_parent):
    else:
    $this_category = wp_list_categories('orderby=id&depth=5&show_count= 0&title_li=&use_desc_for_title=1&child_of='.$this_ category->cat_ID."&echo=0");
    echo '<ul>'. $this_category . '</ul>';
    endif;
    }
    ?>


    So now to my question, since vantage is using custom functions I would like to know which functions to replace "is_category()", "get_category($cat)", "category-parent" and "wp_list_categories" with.

    And no this is not a community support thread so you can not simply move this thread to general discussion (as you do with every second thread that asks for help) so you moderators do not need to answer it.
    Also this is not customization since my question is which functions vantage is using instead of the normal wordpress ones for categories.


    Looking forward for your answer.

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,867 Times in 1,767 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Expired Customer sexd's Avatar
    Join Date
    Dec 2013
    Location
    United Arab Emirates
    Posts
    107
    Thanks
    5
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    dimitris likes this.

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,867 Times in 1,767 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Display Child Categories on Parent Category page?
    By bluemonkey in forum Vantage General Discussion (Legacy)
    Replies: 7
    Last Post: February 17th, 2014, 12:10 PM
  2. Replies: 12
    Last Post: January 19th, 2014, 09:36 AM
  3. categories not showing up under parent
    By mitty in forum WordPress General Discussion
    Replies: 1
    Last Post: January 25th, 2013, 09:58 AM
  4. [SOLVED] Sidebar widget showing only Parent categories
    By pablorodriguez in forum Report JobRoller Bugs
    Replies: 1
    Last Post: May 30th, 2012, 06:49 AM
  5. Child and parent categories showing in alphabetical order on the home page
    By pavlo_shved in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: April 10th, 2012, 08:43 AM