Feed on
Posts
Comments

calendar codaSlider errorcodaSlider error

For those having the following error :

Syntax error, unrecognized expression: [@name='igcaticons_spacerstype'][@value='image']
category_icons-links-panels.js:2TypeError: Result of expression ‘jQuery(”div#slider1″).codaSlider’ [undefined] is not a function.

just comment this line (it should be line number 547) :

wp_enqueue_script('caticons-links-panel', '/wp-content/plugins/category-icons/js/category_icons-links-panels.js');

If you enjoyed this post, make sure you subscribe to my RSS feed!

js Category Icons patch for WordPress 2.8  category_icons-panel.js (607 bytes, 405 hits)

Update : here is the detailed procedure (thanks to ycs for the tip) :

  1. deactivate the plugin,
  2. log out of the admin control panel,
  3. replace the old category_icons-panel.js in the js folder by this one,
  4. clear your browser cache,
  5. close all open browser windows,
  6. open a browser, log in and reactivate the plugin.

Please leave me a comment if it’s not working.

If you enjoyed this post, make sure you subscribe to my RSS feed!

If you have a category.php page & want to display the category icon in it, here is the code :

get_cat_icon("cat=".get_cat_ID( single_cat_title("", false) ));

If you enjoyed this post, make sure you subscribe to my RSS feed!

Someone asked me how, so here it is :

ul, li {
    display: inline;
}

If you enjoyed this post, make sure you subscribe to my RSS feed!

As you can see, I’ve finally found icons for my categories… :)

If you enjoyed this post, make sure you subscribe to my RSS feed!

Long time without updates : lot of work and family stuff… But let’s come back to the list. Here is an example of how to do that :

echo '<ul>';
foreach(get_categories("orderby=name&order=ASC") as $category) {
    echo '<li>'.$category->cat_name.' '.get_cat_icon("echo=0&cat=".$category->cat_ID).'</li>';
}
echo '</ul>';

Update : As I’ve received e-mails and comments on how to implement it, here is the solution. First, create a new page and put {#caticons_listing} in it. Then, paste the following code in the function.php file of your theme (if the file does not exist, create one) :

add_filter('the_content','bm_caticons_listing');
function bm_caticons_listing($content) {
    $listing_code = '<ul>';
    foreach(get_categories("orderby=name&order=ASC") as $category) {
       $listing_code .= '<li>'.$category->cat_name.' '.get_cat_icon("echo=0&cat=".$category->cat_ID).'</li>';
    }
    $listing_code .= '</ul>';
    return str_replace('{#caticons_listing}',$listing_code, $content);
}

If you enjoyed this post, make sure you subscribe to my RSS feed!

calendar Icons for this blogIcons for this blog

As you can see, I don’t have icons for my categories. I’ve been searching around for icons, but unfortunatly, I couldn’t find ones corresponding to my categories.

So I’m searching for a volunteer who would create icons for my categories :

Documentation, How to, FAQ, Translations, Changelog, News, Tips & Tricks

If someone wants to help, you’re welcome !

If you enjoyed this post, make sure you subscribe to my RSS feed!

calendar Some iconsSome icons

Yes, I don’t provide any icon with the plugin, but you can always go visit this website : Famfamfam. And it’s $0.00, as always ! If you know some other icons resources, feel free to post your links here…

If you enjoyed this post, make sure you subscribe to my RSS feed!

You have 2 solutions :

1. With the widget, just put
icons_only=true
in the parameters.

2. Manually, i.e. in the sidebar.php page of your WordPress theme, you must use the put_cat_icons function:

put_cat_icons(wp_list_categories('title_li=&echo=0'),'icons_only=true');

If you enjoyed this post, make sure you subscribe to my RSS feed!

P-C gives us the swedish version. Just download & install the plugin again to add this language.

Thank you, P-C ! (It reminds me the Apple’s ads ;-) )

If you enjoyed this post, make sure you subscribe to my RSS feed!

Older Posts »