ThemeShaper Forums » Thematic

wp-categories plugin

(14 posts)
  • Started 10 years ago by cregy
  • Latest reply from cregy
  • This topic is resolved
  1. Hi

    I was using a plugin to enable child cats to drop-down when selecting the parent cat.

    I was using this code:

      <?php wswwpx_fold_category_list ('hide_empty=0&title_li=&exclude=1,4,6,9,11,14,17,26,29,236,251,264'); ?>

    Could someone help me integrate this code into my site please?

    Thanks

    Rich

    Posted 10 years ago #
  2. Hey Rich,

    please let me know where you want to integrate the Fold Page list.

    Cheers,

    Chris

    Posted 10 years ago #
  3. Thanks for replying Chris. In the sidebar menu replacing the long list of cats that are there currently.

    See Lostwithiel

    Rich

    Posted 10 years ago #
  4. Hi Chris

    If you take a look at the Lostwithiel site, I am hoping that in the categories menu on the far right we end up with something like:
    Lostwithiel Accommodation
    Lostwithiel Eating
    Lostwithiel Shops
    Lostwithiel Services
    Lostwithiel Community
    Photos
    Things to do

    Then when we click on Accommodation it folds down to reveal all the child cats. I have been trying to do it using a plugin but I have also looked at using the drop downs idea that comes with the standard Thematic, but I'm not getting anywhere with it!

    Thanks for all the help.

    Rich

    Posted 10 years ago #
  5. Ok .. so I guess your favorite would be a widget :-)

    Take a look here: King Pages

    It uses the Folder Page List plugin. Haven't checked it 'til now, but it's mentioned by the author of Folder Page List.

    Cheers,

    Chris

    Posted 10 years ago #
  6. Hi Chris

    Running into problems - you might be able to help. I am trying to install the king_pages widget. The only instruction is to put it:

    Copy king-pages.php into your plugins widget folder -> where your widgets.php is !!!

    Any idea where that is please? There seems to be several places it could go. I will try them all if necessary!

    Thanks

    Rich

    Posted 10 years ago #
  7. Just create a folder 'widgets' under your child theme folder second_to_none and copy the king-pages.php into this new widgets folder.

    There's a lot of magic behind Thematic ;-)

    Posted 10 years ago #
  8. I've done that and still can't see anything! Do I need to put widgets.php there as well please? Sorry for causing so much trouble and thanks for bearing with me.

    Rich

    Posted 10 years ago #
  9. Will be back with you in approx. 1 hour .. need to pick up my son from the kindergarten.

    Cheers,

    Chris

    Posted 10 years ago #
  10. :( .. support ends with WP 2.2

    Posted 10 years ago #
  11. .. will try to find something similar later on today

    Posted 10 years ago #
  12. Rich, I'll have a working solution for you tomorrow. Need to do some tests.

    Cheers,

    Chris

    Posted 10 years ago #
  13. Ok .. got it .. it's Folder Category List and not Folder Page List .. my fault!

    Anyway here's some code to implement in your child theme's functions.php:

    function widget_thematic_foldercategorylist($args) {
    	extract($args);
    	if ( empty($title) )
    		$title = __('Folder Category List', 'thematic');
        echo $before_widget;
    		echo $before_title . $title . $after_title; ?>
    				<ul>
    					<?php wswwpx_fold_category_list ('hide_empty=0&title_li=&exclude=1,4,6,9,11,14,17,26,29,236,251,264'); ?>
    				</ul>
    			<?php echo $after_widget;
    }
    register_sidebar_widget(__('Folder Category List', 'thematic'), 'widget_thematic_foldercategorylist', null, 'foldercategorylist');

    Tested and approved!

    I haven't coded a user interface for the widget. If you need to change the title, change the line $title = __(...

    If you want to change the parameters for the function call, change the line
    <?php wswwpx_fold_category_list (...

    Cheers,

    Chris

    Posted 10 years ago #
  14. Hi Chris

    Has anybody told you that you're very good? Thanks the code works brilliantly.

    Cheers

    Rich

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.