Displaying comments and comment form below each post on multi post pages, in 3.4.x
Showing comments and comment form below each post on multi post pages, too:
For Atahualpa 3.4.2+ (This may be an option in later versions) 1. Edit Atahualpa's index.php add the green part: <?php /* This is the actual Wordpress LOOP. The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */ $withcomments = 1; bfa_center_content($bfa_ata['content_inside_loop']); ?> 2. At Style & Edit CENTER COLUMN -> The LOOP, add the green part <?php $withcomments = 1; comments_template(); ?> </div><!-- / Post --> 3. At Style & Edit CENTER COLUMN -> Below the LOOP, remove this: <?php /* Load Comments template (on single post pages, and static pages, if set on options page): */ bfa_get_comments(); ?> |
i got this to work.. but it is displaying multiple comments per post... where can i set this to just grab a single comment for each post when its on multipost pages?
|
Is there a way to use this also with Atahualpa 3.3.3? Or does it only work with 3.4.2?
Best regards, upscho |
The LOOP is not editable in 3.3.3
|
Flynn,
Would you explain how to just list existing comments under the post, but omit the empty Comment template, please? (I figure the users can click Leave Comment if they want...) Thanks, Art |
Hi Flynn,
I actually have the same question. Displaying the comments and comment form works fine when I follow your instructions, but I really don't want the comment form to show automatically too. Any solution? Thanks a lot in advance, Ilke |
Hi Flynn,
I am also very much interested in a solution that displays the comments to posts, but omits the comment form! Best whishes from Berlin...Atahualpa rules! dextor |
if you shut off comments for a post, the form won't show for that post, just the existing comments.
|
yeah, totally correct.
but that would not allow any new comments to be submitted...or am I on the wrong track? I would like to show the comment form only on a single post page, where the user gets directed through towards the comment-link in the post footer. On the other hand the comment form should also show up on category-pages that have only one post as content... I am thinking about using something like this to determine the number of posts global $wp_query; $num = $wp_query->post_count; and then maybe set the single_post flag? What do you think? Best wishes dextor |
Happy New Year BFA-Team!
I don't know why I had so much problems with this, but here is the (kinda easy) solution that I found wich suits my needs: (i) index.php Insert Flynn's code (ii) The LOOP: In here, I insert this stuff to decide whether or not I want to see the post-footer. If the footer shows up, I also include the comments_template call that Flynn showed. (Note: post_is_in_descendant_category('35') is a function that I included into wp-includes/functions.php) Code:
<?php (iii) comments.php Insert this stuff to show the form only on single post pages (could this maybe become a feature in future releases???) Code:
<?php Thanks for your support! Best wishes dextor |
Thanks Flynn.
But I have another problem,was I want my blog's comments only exist in single post page, how could I do? Thanks a lot. Judy |
Quote:
I didn't define it surely. My problem is after I adjust my blog, the comment area exist in homepage and single post, how could I make it only exist in single post? |
Yes I did it this way and succeeded! Can also be done with css
Thanks Flynn __________________ شات الشله |
All times are GMT -6. The time now is 08:16 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.