• Resolved nicktoye

    (@nicktoye)


    I am trying to get my site ready for CSS Reboot, and I have decided that I want to show the full article on the home page. For some reason it is showing an excerpt and displaying the read more link.

    This is the code:

    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <div class=”articleTitle”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
    <?php the_title(); ?>
    </div>
    <!– end of article title –>

    <?php the_content(); ?>

    <div class=”updatedBox”>
    <div class=”updated”>
    <?php the_time(‘jS F Y’); ?>
    | <span class=”viewComment”>
    <?php comments_popup_link(); ?>
    </span> | <span class=”category”>
    <?php the_category(‘,’); ?>
    </span></div> <!– end of updated –>
    </div> <!– end of updatedBox –>
    <?php wp_link_pages(); ?>
    <?php include(ABSPATH . ‘wp-comments.php’); ?>
    <?php endforeach; else: ?>

    <?php _e(‘Sorry, no posts matched your criteria.’); ?>

    <?php endif; ?>

    Any ideas?

    Here is the page link too:

    http://www.nicktoye.co.uk/index2.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • <div class="articleTitle">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    <?php the_title(); ?>
    </div>

    should be

    <div class="articleTitle" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    <?php the_title(); ?>
    </div>

    I don’t know if that’s the problem with your site, but it’s a problem nonetheless.

    Thread Starter nicktoye

    (@nicktoye)

    Thanks for that, it didn’t solve my problem though, but thanks anyway

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h2 class="articleTitle"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php the_content(''); ?>
    /* The other stuff you wanted */
    <?php endwhile; else: ?>
    /* Something here if no posts found */
    <?php endif; ?>

    That should work.

    Thread Starter nicktoye

    (@nicktoye)

    nope, still only showing part of the article

    Thread Starter nicktoye

    (@nicktoye)

    It was a plugin, sorry guys

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Full Article’ is closed to new replies.