Thiago Censi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 2 home pagesI should say that I cannot see where the second home page is being added, but it should be in your list_all_pages functions. But I would give you some advices:
- Keep you function declarations in the functions.php file. That’s why it is there, and it will keep your code clean.
- If you are using 3.0, custom menus are better idea to build your menus. Here’s a nice howto: http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/
- If you are < 3.0, there is a function for that: http://codex.wordpress.org/Function_Reference/wp_list_pages
Hope that helps.
Forum: Fixing WordPress
In reply to: iterate thorugh wp_list_commentsWell, i found a way. I am gonna explain here for someone who runs through the same problem.
I wanted to have:
———————
Comment 1
———————
Comment 2
———————
Comment 3
———————
Some stuff (an ad, for instance)
———————
Comment 4
(…)I couldn’t find a way to put a counter in the wp_list_comments function, but then I found Greg’s Threaded Comment Counter, by Greg Mullhouser.
The plugin does the counting for only top-level comments or for the level that you specify in the settings. Top-level was what I wanted. The problem, for me, is that it echoes the numbers.
I changed the “echo” for “return” and it now works the way I want. It is not the perfect solution, but it is working.
So, if someone runs into another solution, I would be glad to know.
frq.
Forum: Fixing WordPress
In reply to: iterate thorugh wp_list_commentsSo i guess it really is not possible, right? 🙁