Support » Themes and Templates » Modifying The Columnist

  • Hi, I have installed The Columnist ( theme on my WP site. Could someone please share with me on:

    How to replace the thumbnail image on the top left with a static image. In the original theme, the left panel shows the most recent post. However, I have modified it to show just the blog title and description. How do I add a logo to the thumbnail image on top left?

    In the original theme, posts are organized by categories. How do I modify it to show the most recent posts arranged by chronological order, and not category?

    Any help will be much appreciated. Thank you.

Viewing 1 replies (of 1 total)
  • This is the code that displays the posts. How do I change it from displaying posts by category to just displaying the most recent posts?

    <div id="older-posts">
      $catQuery = $wpdb->get_results("SELECT * FROM $wpdb->terms AS wterms INNER JOIN $wpdb->term_taxonomy AS wtaxonomy ON ( wterms.term_id = wtaxonomy.term_id ) WHERE wtaxonomy.taxonomy = 'category' AND wtaxonomy.parent = 0 AND wtaxonomy.count > 0");
      $catCounter = 0;
      foreach ($catQuery as $category) {
      $catStyle = '';
      if (is_int($catCounter / 2)) $catStyle = ' class="catAlt"';
      $catLink = get_category_link($category->term_id);
      echo '<div class="category">';
    		echo '<h2><a href="'.$catLink.'" title="'.$category->name.'">'.$category->name.'</a></h2>';
    		<?php while (have_posts()) : the_post(); ?>
    		<div class="thumbnail">
    				<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
                        <h3><?php the_title(); ?></h3>
                        <?php //get thumnbnail (custom field) ?>
    					<?php $image = get_post_meta($post->ID, 'thumbnail', true); ?>
                        <img src="<?php echo $image; ?>" title="<?php the_title(); ?>" />
                        <?php the_post_thumbnail(); ?>
    		<div class="excerpt">
    				<?php the_excerpt(); ?>
            <a class="more-link" href="<?php the_permalink() ?>" title="Continue reading">Continue reading →</a>
    		<p class="view-all"><a href="<?php echo $catLink; ?>" title="<?php echo $category->name; ?>">View all</a></p>
      <?php endwhile; ?>
      <?php }	?>
    </div><!--- #older-posts --->
Viewing 1 replies (of 1 total)
  • The topic ‘Modifying The Columnist’ is closed to new replies.