• Hi All,

    I am presently making my own website and am having a problem with my ‘Posts’ in the CMS.

    My website is cadmore.co.uk

    At the moment every post I make automatically goes to ‘Latest News’ page…..but I want to be able to dictate where each post goes to. Such as Portfolio, Services etc etc.

    Can anyone help or make suggestions where I can look?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • By default in most themes, the front page lists your most recent posts in date order. If this is not suitable for your site, you will need to add a custom query to your theme’s index.php template file before the Loop.

    http://codex.wordpress.org/Function_Reference/query_posts

    Thread Starter kylecadmore

    (@kylecadmore)

    Hi thanks for that. I am still a little stuck though.

    I believe I have found the loop which is shown below, I have tried a few different queries but they do not want to work? Any ideas? Many thanks in advance.

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <div class=”post_<?php echo $odd_or_even; ?>”>
    <div class=”post clearfix”>
    <div class=”post_content_wrapper”>
    <h2 class=”post_title”>“><?php the_title(); ?></h2>
    <div class=”post_content”>
    <?php the_content(__(‘Read more’, ‘monochrome’)); ?>
    <?php wp_link_pages(); ?>
    </div>
    </div>
    <dl class=”post_meta”>
    <dt class=”meta_date”><?php the_time(‘Y’) ?></dt>
    <dd class=”post_date”><?php the_time(‘m’) ?><span>/<?php the_time(‘d’) ?></span></dd>
    <?php if ($options[‘author’]) : ?>
    <dt><?php _e(‘POSTED BY’,’monochrome’); ?></dt>
    <dd><?php the_author_posts_link(); ?></dd>
    <?php endif; ?>
    <dt><?php _e(‘CATEGORY’,’monochrome’); ?></dt>
    <dd><?php the_category(‘
    ‘); ?></dd>
    <?php if ($options[‘tag’]) : ?>
    <?php the_tags(__(‘<dt>TAGS</dt><dd>’,’monochrome’),’
    ‘,'</dd>’); ?>
    <?php endif; ?>
    <dt class=”meta_comment”><?php comments_popup_link(__(‘Write comment’, ‘monochrome’), __(‘1 comment’, ‘monochrome’), __(‘% comments’, ‘monochrome’)); ?></dt>
    <?php edit_post_link(__(‘[ EDIT ]’, ‘monochrome’), ‘<dd>’, ‘</dd>’ ); ?>
    </dl>
    </div>
    </div>

    <?php $odd_or_even = (‘odd’==$odd_or_even) ? ‘even’ : ‘odd’; ?>
    <?php endwhile; else: ?>
    <div class=”post_odd”>
    <div class=”post clearfix”>
    <div class=”post_content_wrapper”>
    <?php _e(“Sorry, but you are looking for something that isn’t here.”,”monochrome”); ?>
    </div>
    <div class=”post_meta”>
    </div>
    </div>
    </div>
    <?php endif; ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Monochrome Help’ is closed to new replies.