Support » Fixing WordPress » Read more not working (usual fixes not working)

  • Hi,

    I’m having some problems with read more. Whenever I click a read more button in a post I get redirected to my homepage (I’m not using read more on my home page).

    I’m using a copy of my site in a sub-folder to test this, because I thought it might have something to do with this I’ve tested it in my main site as well with the same result (redirecting to my index.php page).

    I’ve also tried using <–!nextpage–> instead of <–!more–> but this has the same problem.

    I’ve tried using the global $more solution in a number of different ways but this does not change anything.

    Eventually I would like to be able to use the read more right here plugin, but for now I’ve disabled it because the normal read more does not work at this time.

    My Theme: Twenty Eleven

    My website:
    http://www.bordersofsweetwoodastarisborn.be/new/flyball.php

    If anyone could point me in the right direction I would be very grateful, I’ve been searching for this for weeks now to no avail.

    Greetings,

    Bram

Viewing 1 replies (of 1 total)
  • Below is the loop I’m currently using for my page:

    <?php global $more;?>
    <?php
    global $wp_query;
    $query = new WP_Query( 'cat=15, 4' );
    $total_pages = $query->max_num_pages;
    if ($total_pages > 1){
    echo '<div id="pagination">';
      $current_page = max(1, get_query_var('paged'));
      echo paginate_links(array(
          'base' => get_pagenum_link(1) . '%_%',
          'format' => '?paged=%#%',
          'current' => $current_page,
          'total' => $total_pages,
        ));
    }
    echo '</div>'
    ?>
    <?php query_posts ($query_string . '&cat=15, 4'); ?>
    	<?php if ( have_posts() ) : ?>
        <?php while ( have_posts() ) : the_post(); ?>
        <ul id="cms-column" class="item">
          <li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <div class="post-header">
               <h2><?php the_title(); ?></h2>
            </div><!--end post header-->
            <div class="entry clear">
                <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail('bigger_image'); ?>
                <div class="date"><?php the_time( 'j M y' ); ?></div>
    			<?php $more = 0;the_content(__('Read More ↓', 'TRUE')); ?>
                <?php edit_post_link(); ?>
                <?php wp_link_pages(); ?>
            </div><!--end entry-->
            <div class="post-footer">
            </div><!--end post footer-->
          	</li><!--end post-->
          </ul>
        <?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
        <div id="clear">
        </div>
        <?php else : ?>
        <?php endif; ?>

    [No bumping, thank you.]

Viewing 1 replies (of 1 total)
  • The topic ‘Read more not working (usual fixes not working)’ is closed to new replies.