Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Show comments per post rather than category


  #1  
Old Sep 27, 2013, 03:21 PM
sstudebaker
 
24 posts · Dec 2011
I am calling up comments on a single post page using
PHP Code:
<?php $withcomments 1comments_template(); ?>
Problem is the comments for each post show up on every post for that category. How do I limit comments to their particular post?
  #2  
Old Sep 27, 2013, 03:38 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
how are you adding that in?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 27, 2013, 04:52 PM
sstudebaker
 
24 posts · Dec 2011
I created a template file and am adding
PHP Code:
<?php $withcomments 1comments_template(); ?>
after the loop.

Here is the template code (Thanks for your help!)

PHP Code:
<?php  
/* Template Name: Single Article of the Week Post */  
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
global 
$bfa_ata_postcount;
?>

<div id="interior_wrapper">
<?php
    $year 
date("Y");
    
$month date('n');
    if ((
$month == 1) || ($month == 2)) $year $year 1;
    
$page_title get_the_title();
    
$page_title get_post_meta($post->ID'bfa_ata_body_title'true);
    
$page_title str_replace(' Game'''$page_title);
?>

<div id="content_wrapper" style="float: left; width: 760px">
    <div class="post-headline">    
        <h1><?php echo $page_title ?></h1>
    </div>

    <div id="page_content" class="clearfix">
        <?php if (have_posts()) : while (have_posts()) : the_post();?>
        <?php the_content(); ?>
        <?php endwhile; endif; ?>
    </div>
</div>

<div id="sidebar_wrapper">
<div id="sidebar_content">
<h2>Articles</h2>
<style>
#sidebar_content ul { list-style-type: none; padding: 0px; margin: 0px; }
#sidebar_content li { margin-bottom: 4px }
</style>
<ul>
<?php query_posts(array('cat'=> '3','showposts'=>'17','order'=>'DESC','orderby'=> 'title','orderby'=> 'post_date')); ?>
<?php 
while (have_posts()) : the_post(); 
    
$post_id get_the_ID(); 
    
$page_title get_the_title();
    
$page_title str_replace(' Game'''$page_title);
    
?>
    <li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php echo $page_title?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>

<div style="clear: both">
<?php $withcomments 1comments_template(); ?>
</div>

</div>

<?php get_footer(); ?>
  #4  
Old Sep 28, 2013, 05:39 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You should use index.php as the base for your template. Unfortunately, to figure out what is going on, I'd have to spend more time that I currently have avaliable due to my paying customers.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 28, 2013, 10:11 AM
sstudebaker
 
24 posts · Dec 2011
If I wanted to stick with what I have what would you need $ wise to look at it?

Bookmarks

Tags
category, comments, posts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show actual comments in multi-post pages arbatax Comments, trackbacks & pings 5 May 4, 2013 08:54 AM
how to? Given category always show the complete post instead of the excerpt? daniel3ub Excerpts, Read more, Pagination 9 Jul 10, 2012 02:33 AM
How to show latest post in certain category as #1 post on front page? efix Center area post/pages 1 Mar 31, 2010 11:58 AM
[SOLVED] Show comments only on newest post? frgvn Comments, trackbacks & pings 0 Mar 11, 2010 02:03 AM
how do i get comments to show up on homepage for each post??? drewjones Comments, trackbacks & pings 2 Apr 15, 2009 07:04 PM


All times are GMT -6. The time now is 06:57 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.