WordPress.org

Ready to get started?Download WordPress

Forums

Removing title= from Catergorys (5 posts)

  1. darthgaara
    Member
    Posted 6 years ago #

    I'm using the category description fields to each category page, to display a detailed description.

    I just noticed that when I'm listing the category links, using: <?php wp_list_categories('title_li=&exclude=1'); ?> - it render's like so:

    <li><a href="url" title="Huge description, which i dont want to show">name</a></li>

    Is there anyway to remove title="..." ????

  2. Chris_K
    Member
    Posted 6 years ago #

    Have you checked out the wp_list_categories documentation?

    Check the use_desc_for_title parm.

  3. darthgaara
    Member
    Posted 6 years ago #

    Thanks, but i'm trying to remove the title= or make it my own custom, like title="[cat-name] word"

  4. Chris_K
    Member
    Posted 6 years ago #

    ok, I'm curious. What happened when you set use_desc_for_title to false?

  5. darthgaara
    Member
    Posted 6 years ago #

    title="View all posts filed under cat-name

Topic Closed

This topic has been closed to new replies.

About this Topic