WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Formatting the title from list_cats (3 posts)

  1. RosieMBanks
    Member
    Posted 9 years ago #

    Hey all, I hope you're having a good Easter weekend!

    I'm trying to format the title of the list produced by this code:


    <ul>
    <?php _e(''); ?>
    <?php list_cats(TRUE, 'ALL', 'ID', 'asc', '', TRUE, FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, '', FALSE, '', '', '', TRUE); ?>

    </ul>

    The listed items come out great; I just want to format the title of each list in <h2>.

    Is there anyway to do it? I tried this:

    <ul>
    <?php _e('<h2>' </h2>); ?>
    <?php list_cats(TRUE, 'ALL', 'ID', 'asc', '', TRUE, FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, '', FALSE, '', '', '', TRUE); ?>

    </ul>

    But it gave me an error and wouldn't validate.

    Thanks!

  2. Root
    Member
    Posted 9 years ago #

    No need to put up hat loads of code. Lets see the blog in question
    Then folks will try to get you fixed. Nothing fancy is needed.

  3. RosieMBanks
    Member
    Posted 9 years ago #

    Root, you WordPress guru, you, I'm not ready to share yet.

    However, when I remove this section of code, the blog validates. When I place it back in, it does not.

    Is this not really a WordPress question? I mean, should I be going to a PHP forum for this question?

    Thanks for all your help,

    Rosie

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.