The line <?php comments_template(); ?> loads the comments input field plus all comments of the according post. (normally only in single.php)
I wanted to say put this line in your index.php in the featured query under the line with <?php the_content(); ?> what you just added in your featured section.
To use it I think you also have to set $withcomments variable to "1".
In your case, only for the featured section (‚…Thought of The Day‘) it might work like this:
Code:
<div class="feat-cont"><?php the_content(); ?></div>
<?php $withcomments = 1; comments_template(); ?>
<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
Coming to the category ‚post pages‘:
This archive.php template is loading all post belonging to the category you clicked. You can only show the comment stuff for each post listed, as this belongs to the post.
You can not add a comment field to the complete category just once on bottom of this list of posts.
To comment on a complete category you could however create a custom Page template. In this template you display your custom categories posts. You can enable comments on pages to be for this custom category only. To create this search for ‚WordPress custom Page Template for a Category‘
____________________
you find me on Google+, Twitter and Facebook
(von: Joern)
Hier noch 5 weitere Ergebnisse dieses Threads:
Show full post in featured
13. Apr. 2010 (von: kinyofu)
Hi,I would now like to show the actual post in the feature section (instead of just date and number of comments). It actually will be a short post. What should I do? Maybe I need to alter section all-together?? Humm....Kinyofuwww.empoweringwomenslives.com…
Re: Show full post in featured :: Reply by Joern
13. Apr. 2010 (von: Joern)
in index.php some lines under div id featured you have:<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>This line of code gives you the title of this post. You have a 'general' headline '...Thought of The Day' so you could…
Re: Show full post in featured :: Reply by kinyofu
13. Apr. 2010 (von: kinyofu)
You are brilliant. Is there a way I can add to the date/comment hyperlink a "click here to comment"? And also to the browse category sections, since the comments don't show up on the browse category post page?Thanks much,Kinyofu Weiterlesen…
Re: Show full post in featured :: Reply by Joern
13. Apr. 2010 (von: Joern)
all this comment stuff is generated by comments.php, loaded normally only in single.php like this:Code:<div id="comments"> <?php comments_template(); ?> </div>Put this under the_comment you just added and see how it comes out.. (don't know, might not fit...)____________________you find me on…
Re: Show full post in featured :: Reply by kinyofu
14. Apr. 2010 (von: kinyofu)
The result is that my quote appeared under the social bookmarks on the post page. (I deleted text). I would like to see it on first page right under the feature post AND under each of the category post pages.…