levitra france acheter isotretinoine levitra 20 mg acheter kamagra acquisto viagra in farmacia achat levitra levitra ricetta levitra farmacia viagra en ligne cialis generico sicuro acheter cialis moins cher acquisto viagra svizzera levitra italia acquisto viagra originale impuissance erection acheter cialis sur la net viagra kosten curare impotenza acheter cialis en belgique sildenafil kaufen citrate de sildenafil acheter kamagra oral jelly achat viagra en ligne comprar viagra generico viagra acquisto online viagra donna vente de cialis sur internet medicament impuissance levitra en ligne dysfonction erectile viagra europe impotenza rimedi compro sildenafil kamagra rezeptfrei vente levitra sildenafil rezeptfrei achat de viagra comprar cialis propecia sans ordonnance pilule cialis comprar sildenafil achat cialis 20mg pastilla viagra acheter du cialis trouver du viagra viagra bestellen kamagra gel compro cialis koop viagra prix de cialis comprare levitra sildenafil generique cialis receta prezzi viagra cialis generico 10 mg kamagra te koop levitra venta generische cialis cialis sur ordonnance levitra pharmacie acheter viagra pas chere kamagra apcalis levitra kopen cialis 10 mg cialis pharmacie levitra naturale comprar vardenafil acheter cialis pas chere impuissance sexuelle cialis vente libre sildenafil precio cialis en pharmacie vendo levitra acheter kamagra 100mg achat vardenafil generische viagra levitra sin receta acquisto viagra net viagra preço viagra ricetta trouver du levitra cialis preço compro levitra viagra pharmacie vendo viagra costo viagra cialis venta pastilla levitra acquista levitra costo levitra cialis ohne rezept traitement impuissance acquistare viagra farmaci impotenza cialis indien cialis precio cialis vente libre receta viagra levitra rezeptfrei posologia viagra levitra ordonnance cialis quebec viagra vendita italia sildenafil costo pilule viagra acheter finasteride vente cialis sildenafil generico pildoras cialis commander du cialis viagra senza ricetta prozac prix achat tadalafil cialis inde viagra sans prescription tadalafil bestellen viagra rezeptfrei compra viagra cialis effet secondaire acquista viagra levitra donne levitra sans ordonnance acheter clomid en france acheter kamagra france cialis svizzera acheter cialis pas cher zyban prix zithromax prix cialis marche pas cialis france vardenafil bestellen acheter cialis en espagne viagra prijs

Wordpress Plugin: Category Link Manager

Posted October 15th, 2006

I can’t really call this a new plugin. If you look under the hood, most of codebase is just a reworking of the popular Page Link Manager. It’s one of the nice things about Wordpress plugin development — being able to borrow ideas from similiar plugins — and it’s what makes scripting for Wordpress enjoyable.

The motivation behind this plugin is the fact that excluding categories is somewhat of a barrier to those of us who are not programmers. It used to be that we would have to dig through PHP templates and add exclude=2,7 to the wp_list_cats tag. To clients or anyone not familiar with the Wordpress system, that may seem like an impossible task. And, for those who are comfortable with the Wordpress system, it can be just plain annoying. The Category Link Manager attempts to make things just a little bit easier.

One last note: I’d like to thank Valerie for sharing this idea with me.

The Plugin

The Category Link Manager Plugin is a Wordpress plugin that adds an administration panel that allows users to pick which category links are included in the site navigation. It also provides a function that uses these settings to replace wp_list_cats. Adding it to your Wordpress installation is as easy as ever.

  1. Download and unzip the plugin archive.
  2. Place the plugin file under wp-content/plugins directory on your Wordpress Installation.
  3. Log in to your admin interface and activate Category Link Manager under the ‘Plugins’ tab.
  4. Go to the new panel under the ‘Manage’ tab called ‘Category Links’.
  5. Select and update the categories you want included in your site navigation.
  6. Open the source of the template file where you call the wp_list_cats function (the default file is sidebar.php, however it may be different if you’re using certain plugins) and replace it with gdm_list_selected_cats.

If you’re wondering, gdm_list_selected_cats is what does all the work for us. It takes the categories we chose to include in the navigation and works out what categories it should exclude. Besides that, it acts exactly like wp_list_cats — it even takes the same parameters.

Here’s a few examples of what we can do:

[php]
// sort the categories by name
gdm_list_selected_cats(’sort_column=name’);

// sort the list by name and show empty categories
gdm_list_selected_cats(’sort_column=name&hide_empty=0′);

// sort the list by name and manually exclude
// additional categories
gdm_list_selected_cats(’sort_column=name&exclude=2,7′);
[/php]

Like my other Wordpress plugins, I hope to keep this plugin going as a work in progress as it helps make content management just a little bit easier. If you have any problems, questions or suggestions, please let me know.

Requirements

The current release requires a server running at least PHP4. The plugin has been tested on Wordpress 2.x. If anyone has gotten it working on older versions of Wordpress, please let me know.

Download the Plugin

All source code is provided under the Creative Commons Attribution-Sharealike License. If you agree to these terms, please download the plugin now.

18 Responses to “Wordpress Plugin: Category Link Manager”

Category Plugin stopped working mysteriously

Чот не не особо, пойду ещё что нить зачту

Hello,

I have a question, why do I have to edit and place gdm_list_selected_cats?

The Page link Manager plugin doesn’t need me to replace anything. It could be nice your plugin worked the same.

Greetings

Jos

In order for it to work you must edit the file.

Find wp_list_cats and replace it with wp_list_categories

Greetings

Leave a Reply