blix single category page comments
-
Okay, I’ve been searching for the solution of this little problem for hours now. Can’t find it here, can’t find it elsewhere. Probably doesn’t help that i’m a php-n00b.
I installed the beautiful blix template. I created a page that displays only one category. It looks like this:
doktorflorian.com/werk
Note that there is no option to post a comment beneath the individual posts, even though I have
<?php comments_popup_link('schreib was', '1 kommentar', '% kommentare', 'commentlink', ''); ?>
in my template for this page.
The whole code looks like this:
<?php
/*
Template Name: werk
*/
?><?php get_header(); ?>
<!-- content ................................. -->
<div id="content" class="archive"><?php
$posts = get_posts('numberposts=8&category=4');
foreach($posts as $post) :
setup_postdata($post);
?>
<div class="entry">
<h2>" title="Permalink"><?php the_title(); ?></h2>
<?php the_content(); ?>
<p class="info">
<?php comments_popup_link('schreib was', '1 kommentar', '% kommentare', 'commentlink', ''); ?>
<em class="date"><?php the_time('F jS, Y') ?><!-- at <?php the_time('h:ia') ?>-->
<!--<em class="author"><?php the_author(); ?>-->
<?php edit_post_link('Edit','<span class="editlink">','</span>'); ?></div>
<?php endforeach; ?>
</div><!-- /content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>I would like this page to look exactly like this:
doktorflorian.com/category/werk/
I would also like it to have “previous posts” and “next posts” buttons on the bottom, but I can insert the necessary code anywhere in my “werk” page template, the buttons still won’t show.
Please help me understand what I am doing wrong.
- The topic ‘blix single category page comments’ is closed to new replies.