• Resolved rosiembanks

    (@rosiembanks)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Root

    (@root)

    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.

    Thread Starter rosiembanks

    (@rosiembanks)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Formatting the title from list_cats’ is closed to new replies.