WordPress.org

Ready to get started?Download WordPress

Forums

WP Catalogue
[resolved] identify subcategories in catalogue (12 posts)

  1. ebocic
    Member
    Posted 1 year ago #

    Hi, is there a way i can identify a subcategory in my catalogue. i need to do this because i need to make a difference from a parent category from a child category.

    thanks in advance

    Esteban

    http://wordpress.org/extend/plugins/wp-catalogue/

  2. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    HI Esteban - no not currently able to handle sub-categories very well. But the good news is that I'm working on a major release which will have the ability to handle more levels of category, and also will be able to embed a specific category or sub-category using shortcode. Due for release in a few weeks...

    In the meantime you could just link to the specific permalink you want... it's not perfect solution obviously but might be workable for a few weeks until next version is ready

    Hope this helps

  3. ebocic
    Member
    Posted 1 year ago #

    thanks for your answer. I will try using your permalink idea. I also be waiting for your release.

    Thanks!

  4. anmaree.annarbortees
    Member
    Posted 1 year ago #

    When do you think subcategory may be available? I have been looking everywhere for a light catalog that displays categories as thumbnails that split into subcategories as thumbnails until I reach the product. Do you know where or if this is possible?

    thanks you so much!

  5. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    It will be released in 1-3 weeks from now

  6. 4netk
    Member
    Posted 1 year ago #

    I fixed my subcategories tweaking the wpc-catalogue.php and the single-product.php files. It's working. I also needed to adjust the term_order from phpmyadmin in the database. are you going to fix that too in this new release?

  7. manuki
    Member
    Posted 12 months ago #

    hi 4netk would you be able to help me do the same, i would like to load only catalogue items from a certain category in different pages, is that what you did?

    could you help?

    thanks

  8. kllktv
    Member
    Posted 12 months ago #

    Hi #4netk im looking to do the same tweak to this amazing plugin! but i dont have much php experience , do you think you could help me? thanks in advance

  9. scihangir
    Member
    Posted 11 months ago #

    1- go to wpc-catalogue.php

    2- put this code after 81th line

    //sub category class
     if($term->parent > 0){
    	$class2	= ' sub-cat';
    	}else{
    	$class2	= ' main-cat';
    	}

    3- change $return_string value this one (88th line)

    $return_string .=  '<li class="wpc-category '. $class .''. $class2 .'"><a href="'.get_term_link($term->slug, 'wpccategories').'">'. $term->name .'</a></li>';

    4- go to includes/css. edit catalogue-styles.css
    and place the following code in any line.

    #wpc-col-1 ul li.main-cat a {
    	font-weight:bold;
    }
    
    #wpc-col-1 ul li.sub-cat a {
    	margin-left:10px;
    }
  10. manuki
    Member
    Posted 11 months ago #

    Thank you! I will try it!!

  11. teeuwen
    Member
    Posted 10 months ago #

    This works Great!!
    thnx Scihangir.

    Would you happen to know a way to hide these " subcatagories" when its main is not active? Im trying to make my Main-cat list a bit cleaner haha.

    Thanks in advance.

  12. lilgee34
    Member
    Posted 10 months ago #

    I was wondering if you could help me on this. I have this working but it also shows the sub-categories on the main category page? and for some reason the main category is underneath the sub-category in the navigation. Is there a way to switch that. I also need to have sub categories..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic