janosd
Member
Posted 3 months ago #
I use the Lazyest Gallery plugin which uses wp_list_comments to list comments to folders and images and even the posts the folder gallery belongs to.
It shows comments in an unformatted way, not like on my other pages.
I compared single.php's method to the Lazyest Gallery and i see the former uses comments_template() to list comments while the latter uses wp_list_comments.
I changed wp_list_comments to comments_template but it now doesnt list comments but echoes "2 Comments to “Article”" in an infinite loop.
Anybody know what can i do?
Each time comments_template() (in single.php or page.php) is called, Lazyest Gallery uses a filter to display the comments for a particular image. So changing wp_list_comments() to comments_template() won't help you.
I'd suggest to add/change the styles for the elements in Lazyest Gallery's comments list.
janosd
Member
Posted 3 months ago #
Where can i find the css elements of Lazyest Gallery's comments list?
There are no stylesheet for it.
edit: I could add elements to it but the part is not working is a mess, the class look like:
ol class="commentlist"
li class="comment byuser comment-author-admin bypostauthor even thread-even depth-1 parent" id="comment-128"
i mean WTF?? :S
please don't WTF me.
The comment classes are generated by Wordpress by wp_list_comments()
You could add formatting to classes commentlist and comment in the stylesheet of your theme. Or analyse the formatting of comments on non-gallery posts.
janosd
Member
Posted 3 months ago #
Sorry, it wasnt addressed at you, it was addressed to the rather lond classname.
Excuse me, please. I am doing the exact same thing, analyzing the non-gallery posts.
edit:
deleted, i was on a wrong track here. Will report back if i make progress.
If you don't have any formatting rules in your stlesheet for the classnames that you find unnecessary, they shouldn't be a problem.
Anyhow, the comment list is standard Wordpress stuff.
Could you please share the URL of your site so we can look what the problem is?