Support Forum
Hello I am having an issue getting my forum posts to show up in my blog comments.
I have gotten my blog posts to show up in the forum without any problems that portion works great. But when I try to go the other way I can not seam to get it and don't understand code enough to figure it out.
I want to use "Display mixed in standard comment block" for the comments to appear.
This is what I have in my comments.php
echo '<ul id="comments-list">'; wp_list_comments('type=all&callback=theme_comment'); echo '</ul>';
I have searched around and blindly messed around with the wp_list_comments() with no luck. I did get the forum comments to show once but then the blog comments did not show and the forum comments had no CSS style.
So can anybody help me. and let me know what I can change or add to get my forum comments to show up in my blog? I am hoping it is just a simple change to the wp_list_comments() function.
Thank you in advance for any help it is greatly appreciated.
can you remove that callback as a test?? its calling a non wp routine to handle comments... and it might not be firing all the normal wp hooks and actions...
Visit Cruise Talk Central and Mr Papa's World
I tried that but unfortunately it removes the css for the comments and they just get inserted as ugly text. This is an Artisteer theme if that makes any difference.
Also when I remove the callback the forum posts show up but the comment link says "Leave a comment" instead of the number of comments. when I click on that I can see the comments but the post still says "0 responses to ****"
Is there a way to maybe just add forum into that line somehow like type=forum,all&callback=theme_comment ??
I am clueless when it comes to syntax and commands.
and thanks for the supper fast reply. you really are on top of things Mr. Papa
perhaps creating a template tag to just simply display forum posts as comments is not such a bad idea and I can certainly raise that for discussion and perhaps inclusion on a future update.
The current system works by appending topic posts to the standard WP 'comments' object so it does require some standard use of the WP API.
So it seems standards have been ignored here. Have you tried using the code you suggested but changing the option to display topic posts as a separate block? Might be useful to know if that actually works.
YELLOW
SWORDFISH
|
I tried:
type=forum,all&callback=theme_comment
with, display topic posts as a separate block. It did not display any forum posts. I also tried just plain old type=all with display as separate block and it did not look any different then when I used type=all with display mixed in. Why in the world cant the Artisteer programmers stick to standards. This is not the first time I have ran into problems specific to artisteer.
I do suspect this is the issue. Sadly there are an awful lot of themes out there that do not take fully into account the requirements of WP plugins.
My own personal recommendation would be to bypass the callback function and do your own thing which would mean adding on the styling - which I do appreciate is a pain. Although I suppose my first recourse would be to ask the theme author for some help. After all the WP comments data object should be the standard used.
If it is of any help you can tell them that we use the wp filter 'comments_array' to ad our content - something which does not appear to have been called when it should. They should be able to help you get that into place I would have thought.
YELLOW
SWORDFISH
|
Thanks Yellow Swordfish.
When you say "bypass the callback function and do your own thing" I have no clue what so ever on how to add the styling back in that the callback function takes care of. So not only is it a pain but impossible for me with my limited knowledge. The only way I would be able to accomplish that is if somebody gave me the exact code to copy and past into my file.
Oh well guess I am going to ask around some more on the Artisteer forum and see if they can help.
Thanks for your time Yellow Swordfish.
1 Guest(s)