[theme-reviewers] Numbering comments with wp_list_comments()

Chip Bennett chip at chipbennett.net
Sun Jan 2 03:20:19 UTC 2011


Have you tried outputting wp_list_comments() inside of OL tags, and styling
the list marker?

On Sat, Jan 1, 2011 at 9:08 PM, Syahir Hakim <khairulsyahir at gmail.com>wrote:

> Hi everyone,
>
> One of my theme users is trying to figure out how to number the comments
> shown in the website. In the old days (prior to wp_list_comments() being a
> requirement) this can be easily done using a counter variable ( $i = 0, $i++
> that sort of thing), but can the same effect be achieved when using
> wp_list_comments()?
>
> I know we can just style the list output, but that's not very flexible in
> terms of styling. You can't really move the ordered list numbers around as
> you wish, for example.
>
> FYI, my theme (Graphene) is using wp_list_comments() with a callback
> function graphene_comment() to format the comments output.
>
> Thanks guys!
>
> --
> Regards,
> Syahir Hakim
>
> Contact:
> http://www.khairul-syahir.com
> +6014 753 1883
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110101/b726e9f3/attachment.htm>


More information about the theme-reviewers mailing list