buttonedorg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Comments not threading since updateBump.
Forum: Fixing WordPress
In reply to: Comments not threading since updateHere’s the comments styling of my theme
function blacknblue_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID() ?>" class="comment-list"> <div class="comment-left"> <?php echo get_avatar($comment,$size='75'); ?> </div> <div class="comment-right<?php if($comment->user_id == '1') {echo' admin-comment';} ?>"><?php comment_author_link(); ?> <a href="<?php get_comment_link( $comment->comment_ID ) ?>">#</a><?php edit_comment_link(__('(Edit)'),' ','') ?></p> <?php if ($comment->comment_approved == '0') : ?><p class="moderation">Your comment is awaiting moderation</p><?php endif; ?> <?php comment_text() ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'reply_text' => 'Reply to this Comment', 'max_depth' => $args['max_depth']))) ?> </div> </div><div class="clearfix"></div></div> <?php }
Forum: Plugins
In reply to: catlist pluginNevermind, I’m using this code for my archives page:
<?php global $post; ob_start(); $catid_v=the_category_ID(); ob_end_clean(); $myposts = get_posts("numberposts=10&offset=1&category=$catid_v"); foreach($myposts as $post) : setup_postdata($post); ?>
Forum: Themes and Templates
In reply to: Show one post on main page and list in category pageI tried installing the category list addon and put [catlist] where I want the posts to be listed, but it just displays [catlist] -.-
Forum: Themes and Templates
In reply to: Show one post on main page and list in category pageThis is my current code:
[quote]<?php get_header(); ?>
<div id=”content” class=”clearfix”></p>
<p> <div id=”left-col”></p>
<p> <?php if (have_posts()) : ?>
<?php
if(isset($_GET[‘author_name’])) :
$curauth = get_userdatabylogin(get_the_author_login());
else :
$curauth = get_userdata(intval($author));
endif;
?>
<div class=”twitter clearfix”>
<p class=”color-blue”>
<?php $post = $posts[0]; ?>
<?php if (is_category()) { ?>
<h4 class=”font-georgia”>Archive for the ‘<?php single_cat_title(); ?>’ Category</h4>
<?php } elseif( is_tag() ) { ?>
<h4 class=”font-georgia”>Posts Tagged ‘<?php single_tag_title(); ?>’</h4>
<?php } elseif (is_day()) { ?>
<h4 class=”font-georgia”>Archive for <?php the_time(‘F jS, Y’); ?></h4>
<?php } elseif (is_month()) { ?>
<h4 class=”font-georgia”>Archive for <?php the_time(‘F, Y’); ?></h4>
<?php } elseif (is_year()) { ?>
<h4 class=”font-georgia”>Archive for <?php the_time(‘Y’); ?></h4>
<?php } elseif (is_author()) { ?>
<h4 class=”font-georgia”>Author Archive: <?php echo $curauth->display_name; ?></h4>
<?php } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<h4 class=”font-georgia”>Blog Archives</h4>
<?php } ?>
</p>
<!– End Title –></p>
<p> <?php while (have_posts()) : the_post(); ?></p>
<p> <?php // To show only 1 Category
$category = get_the_category();?></p>
<p> <div class=”post-content clearfix”>
” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?>
</div><!– End post-content (post-<?php the_ID(); ?>) –></p>
<p> </div><!– End post-<?php the_ID(); ?> –></p>
<p> <?php endwhile; ?></p>
<p> <div class=”single-meta clearfix”>
<div class=”left”><h4 class=”single-info font-georgia color-white size”><?php next_posts_link(‘? Older Entries’) ?></h4></div>
<div class=”right”><h4 class=”single-info font-georgia color-white”><?php previous_posts_link(‘Newer Entries ?’) ?></h4></div>
</div></p>
<p> <?php endif; ?></p>
<p> </div><!– End left-col –></p>
<p> <?php get_sidebar(); ?><!– End right-col –></p>
<p> </div><!– End content –>
<?php get_footer(); ?>[/quote]