Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Top Cat

Apraksts

Top Cat allows you to specify a main category for your posts. Even though WordPress posts can have more than one category, you may want to specify which of them is the main category for each post. Top Cat lets you do this and also provides template tags for displaying the main category.

Using style sheets, you can then apply different styling to posts based on their main category, even if they belong to the same set of categories. For an example, see my home page at http://www.thunderguy.com/bennett/

Uzstādīšana

  1. Copy topcat.php into your WordPress plugins directory (wp-content/plugins).
  2. Log in to WordPress Admin. Go to the Plugins page and click Activate for Top Cat.
  3. Note that the administration functions should work on most modern browsers. I will add universal support soon.

BUJ

What is this good for?

Suppose you have a post about the Cannes Film Festival, and another about a French film. Both might be in the “France” and “Films” categories, but perhaps you’d want to put the film post mainly in the “Films” category and the Cannes post in the “France” category.

Using Top Cat’s template tags, you can then style the posts differently based on their main categories. For example, see my home page at http://www.thunderguy.com/bennett/

I don’t see the radio buttons on the admin screen!

The administration functions of Top Cat currently don’t work on all browsers, especially older ones. I plan add universal support in the near future.

How did you add the radio buttons to the admin screen?

Have a look at the code… It’s slightly tricky because Windows Internet Explorer works differently to the way you might expect.

Atsauksmes

Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“Top Cat” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Top Cat&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.