Support » Fixing WordPress » Only one post showing for my new theme layout

  • Hi,

    I’ve totally new to wordpress and blogging in general and i only have limited skills in editing html and php code.

    I’ve setup a blog here, and i have tried to edit the theme to make it look like my website, and although everything looks fine, when i try to post a 2nd message, it automatically replaces the first post, so that theres only every 1 post on the blog page.

    Please could someone let me know what i should check to make this work.

    I know for sure that the other themes work fine so it must be something that i’ve edited to make it not work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Logged in as admin, go to Options -> Reading. What do you have set for “Show at most:” (top option)?

    thanks for the reply.

    i’ve got it as 10. i put the default theme back and it was fine, when i did a 2nd post both posts showed up, so maybe its something i have done to the index.php file, but i’m not sure.

    I’d agree – if it works in default, but not in your own customized theme then you probably want to check your theme’s The_Loop and make sure you didn’t break something.

    hi, i’ve spent the last few hours trying to get my head round this, but i just can’t. Could you have a look at the code below which is my index.php file, and see if i should make any changes to it, i know it looks a bit messy compared to how most people have their index.php files, but the layout worked perfect, i just can’t get it to show all my blog posts.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="" xml:lang="en" lang="en">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <meta name="Keywords" content="Keywords" />

    <link rel="stylesheet" type="text/css" href="" media="screen" title="studio7designs (screen)" />
    <title> - Buy and Sell Text Ads Quick</title>
    <style type="text/css">
    .style11 {font-size: 1.8em}
    .style29 {color: #7594C0}
    .style38 {font-size: 11px}
    .style22 {font-size: 1.4em}
    .style32 {color: #323232}
    .style39 {font-size: 12px; font-weight: bold; }
    .style43 {font-size: 12px}


    <div id="leftsidebar">
    <img id="header" src="" width="760" height="35" alt="header" />
    <div id="menu">
    <h2 class="hide">Menu:</h2>

    <li><a href="#">Home</a></li>
    <li><a href="#">Register</a></li>
    <li><a href="#">Login</a></li>
    <li><a href="#">My Account </a></li>
    <li><a href="#">Website Owners </a></li>
    <li><a href="#">What is adquick? </a></li>
    <div id="content2">
    <div align="right">
    <div align="right">
    <div id="div">
    <div align="right">
    <div class="main2">
    <div id="content" >
    <?php if (have_posts()) : the_post(); ?>
    <div class="post">
    <h1><a href="">">
    <?php the_title(); ?>
    <div id="edit">
    <?php edit_post_link('Edit', '', ''); ?>
    <?php the_content(__('(more...)')); ?>
    <div id="meta">
    <h3>About this post</h3>
    <?php the_time('F jS, Y') ?>
    <?php the_author() ?>

    <?php comments_template(); // Get wp-comments.php template ?>
    <?php endif; ?>
    <p align="left">&nbsp;
    <p align="left">&nbsp;

    <?php get_footer(); ?>

    HandySolo gave you a link. The answer is there.

    Hint1: <?php if (have_posts()) : the_post(); ?> is not right.

    thanks guys, its all sorted now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Only one post showing for my new theme layout’ is closed to new replies.