Support » Fixing WordPress » Posting not publishing

  • Hi,

    I am working on a friends blog with no problems until now. I just created a new post & published it but when I view the site online the post hasnt published? The blog is set to a 10 posts limit and there is only 5 published??

    Can anyone help?

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • dvl1980,

    Check the php code listed under Appearance > Editor Main Index Template (index.php) for “showposts=5” within the loop in question. What you are looking for looks similar to the following:

    <?php query_posts('category_name=special_cat&showposts=5'); ?>

    Where “showposts” may be the limiting factor.

    Thread Starter dvl1980

    (@dvl1980)

    Hi doc4,

    Im new to this so plz excuse my ingorance.

    I am not sure where the main index template is?

    It’s in your admin panel (left sidebar).

    Find the ‘Appearance’ tab

    Then click ‘Editor’

    Then on the very right side of the screen find the ‘Main Index Template’.

    Thread Starter dvl1980

    (@dvl1980)

    Hi,

    I have an earlier version (2.6.3) ..Managed to find the main index template but cant see the code you mention?

    Here is what I have;

    <?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <?php if (have_posts()) : ?>

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

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>

    <p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Thanks for helping..

    Hi,

    YOu can edit the index.php file of that blog with the help of FTP also. Do login into the FTP and go the blog folder -> wp-contents -> themes -> yours selected theme folder -> index.php file which needs to edit.

    search this code:
    <?php query_posts(‘category_name=special_cat&showposts=5’); ?>

    Replace with:

    <?php query_posts(‘category_name=special_cat&showposts=10’); ?>

    Thanks,

    Shane G.

    Thread Starter dvl1980

    (@dvl1980)

    Hi I am not sure what that is either.. haha..

    Could you be more specific?

    dvl1980,

    It seems pretty clear that the “showposts=5” is not affecting your limited post issue. If it where the “showposts” code would have appeared within the file code you sent.

    Just to double check you have modified the settings under Settings >
    Reading > Blog pages show at most? You may want to upgrade your WordPress as well if just for security measures.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Posting not publishing’ is closed to new replies.