Support » Fixing WordPress » How to control category links markup

  • I’m using the WP 1.2. There is a way to have the category name and list separately, so that I can control the markup? I need:
    li id=”class_id” … a href… etc.
    Every list item with different id, obviously.
    At the moment it looks like I can’t modify the markup in which the list appear. I’d like to use the link (the argument of href) even in other places. It is possible?
    And there’s a place where I can find the wp_list_cats options with example? By now I’ve found the olt list_cats in the wiki.
    Mmm… a lot of question… 😉 Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Bimbobello,
    Have a look at this page in the Wiki which may help you.
    Craig.

    I have no explained well my problem.
    What I want isn’t a css feature. All I want is to control the output of the wp_list_cats.
    Suppose I have three categories: general, cinema, comics. I click in cinema, and I want in that page the cinema item in the cat list being not clickable, and, suppose, bold.
    Is it possible?
    Thanks
    B-

    It is possible. Trace down the function that display the categories when you call wp_list_cats, and change an a href to a strong. It is not the easiest thing to do, but if it’ s important for you, you can get it done.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to control category links markup’ is closed to new replies.