Forums

Formatting template function returns... (5 posts)

  1. nicluciano
    Member
    Posted 3 years ago #

    For instance, wp_get_archives('type=monthly'); returns your archives in the format of li->a. But wp_list_categories(); returns the categories as li's inside of a ul inside of an li. I'd prefer it to just return the categories in the same format as wp_get_archives()...

    Thanks!
    Nic

  2. whooami
    Member
    Posted 3 years ago #

  3. nicluciano
    Member
    Posted 3 years ago #

    Yes but, correct me if I'm wrong, it only explains how to use option parameters in the function. Nothing about how to format what it returns. To specify... I'm trying to format the return structure, not format the query. Also, this question encompasses all of the template tags, not just this one in particular, I used it as an example. I think that they should naturally all return things in the same format but they don't.

  4. whooami
    Member
    Posted 3 years ago #

    yah you look to be right, I misread some stuff on the bottom of the page.

  5. nicluciano
    Member
    Posted 3 years ago #

    Anyone? Is there anywhere else I could ask this question where I'd get an answer? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags