• First off all sorry for my English…

    I already tried every possible solution I found in this and other Forums but I just don’t get it:
    -On my Homepage the recent 10 Posts are shown
    -At the bottom I’ve got a Link “Older Posts”
    -The exactly same Posts are shown, but “/pages/2/” was added to the main URL
    -When i scroll to the bottom the Links “Older Posts” and “Newer Posts” Show up. If I choose one of the Links, the URL changes but still the same 10 Posts are shown

    I also tried it with the Themes “Twenty Ten”, “Twenty Eleven”, “Twenty Thirteen”, “Twenty Fourteen” and two random other Themes from the most popular Themes.

    I think the Problem might be the index.php file in the Themes Directory. I played a Little with this File but didn’t get the solution. At the Moment I’ve got the restored original index.php File.

    Has anyone got an idea what this Problem might cause?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter stephanium

    (@stephanium)

    Here’s the Content of my index.php File:

    <?php
    /**
     * The main template file
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * For example, it puts together the home page when no home.php file exists.
     *
     * @link https://codex.www.ads-software.com/Template_Hierarchy
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    
    get_header(); ?>
    
    	<div id="primary" class="site-content">
    		<div id="content" role="main">
    		<?php if ( have_posts() ) : ?>
    
    			<?php /* Start the Loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', get_post_format() ); ?>
    			<?php endwhile; ?>
    
    			<?php twentytwelve_content_nav( 'nav-below' ); ?>
    
    		<?php else : ?>
    
    			<article id="post-0" class="post no-results not-found">
    
    			<?php if ( current_user_can( 'edit_posts' ) ) :
    				// Show a different message to a logged-in user who can add posts.
    			?>
    				<header class="entry-header">
    					<h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1>
    				</header>
    
    				<div class="entry-content">
    					<p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p>
    				</div><!-- .entry-content -->
    
    			<?php else :
    				// Show the default message to everyone else.
    			?>
    				<header class="entry-header">
    					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
    				</header>
    
    				<div class="entry-content">
    					<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>
    					<?php get_search_form(); ?>
    				</div><!-- .entry-content -->
    			<?php endif; // end current_user_can() check ?>
    
    			</article><!-- #post-0 -->
    
    		<?php endif; // end have_posts() check ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    It is still the Original index.php from Twentytwelve but I think I might have to Change something in this File.

    a plugin might be the cause, if the problem persists even if you change the theme.

    have you tried to temporarily deactivate all plugins?

    if that solves the problem, you can them re-activate one plugin at a time and test inbetween, to find out which plugin was causing the issue.

    Thread Starter stephanium

    (@stephanium)

    I deaktivated all Plugins – still the same Problem

    I also installed the WP Db Abstraction Plugin. So my DB type is MSSQL and not MYSQL. Maybe thats the cause? Well I can’t deactivate that Plugin.

    Is it working when you use default permalinks structure ?

    Thread Starter stephanium

    (@stephanium)

    Exactly the same problem with the Default permalinks.

    Thread Starter stephanium

    (@stephanium)

    I just noticed:
    -I’ve got 10 Posts and Maximum 2 are shown per Page
    -On my first Page (Home) the newest 2 Posts are shown
    -When I go to the second Page (Older Posts) the same Posts are shown
    -When I go to the third Page (Older Posts) the same two Posts are shown AND the next 2 older Posts (4 Posts are shown)
    -When I go to the fouth Page the same Posts as on the third Page AND the next 2 older Posts are shown (6 Posts are shown)
    -…and so on

    So only on Page 1 and 2 the exact same Posts are shown. From Page 3 and above its adding the Posts it should, but the other Posts dont hide.

    Thread Starter stephanium

    (@stephanium)

    anyone got an idea?

    Thread Starter stephanium

    (@stephanium)

    I finaly found the Problem:

    The “WP DB abstraction plugin” caused the Problem. by following the steps on this page, it resolved my Problems.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WordPress posts page navigation not working’ is closed to new replies.