Removing The Title Attribute From wp_list_categories & wp_list_pages

January 23, 2010 | Filed Under Wordpress | 4 Comments

Use  Exact Below code for  categories  and pages.

wp_list_categories:

<?php $title_free_cats = wp_list_categories(‘echo=0′);

$title_free_cats = preg_replace(‘/title=\”(.*?)\”/’,,$title_free_cats);

echo $title_free_cats; ?>


wp_list_pages:

<?php $title_free_pages = wp_list_pages(‘echo=0′); $title_free_pages = preg_replace(‘/title=\”(.*?) color: #000099; font-weight: bold;”>\”/’,,$title_free_pages); echo $title_free_pages; ?>

Comments

4 Responses to “Removing The Title Attribute From wp_list_categories & wp_list_pages”

  1. Thanks for this useful article.

  2. Great article Thank

    you so much!

  3. nice share, good article, very usefull for me…thanks Your site is very useful for me .I bookmarked your site!

  4. good information you

    write it very clean. I am very lucky to get this tips from you. Your site is very useful for me .I bookmarked your site!

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker