WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Pagination not working ~ displaying homepage (3 posts)

  1. fandrejevic
    Member
    Posted 3 years ago #

    Hello,

    Pagination is not working on bit.ly/kaAeRD, it open link ( /page/2 ), but it shows content from home. Any ideas?

    Thanks in advance,
    Filip Andrejevic

  2. WPMUDEV
    WPMU DEV Support Staff
    Posted 3 years ago #

  3. fandrejevic
    Member
    Posted 3 years ago #

    Hello,

    My loop:

    <?php //Prva 3 teksta
    
    						global $post;
    
    						$args = array( 'numberposts' => 3);
    
    						$myposts = get_posts( $args );
    
    						foreach( $myposts as $post ) :	setup_postdata($post); ?>
    
                            	<div class="box">
    					<a href="<?php the_permalink() ?>" rel="bookmark" title="Veza do stranice <?php the_title(); ?>">
                                        <?php
    									if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
      									the_post_thumbnail('mala');
    									}
    									else {?>
                                        <img src="adresa/wp-content/themes/cleanmobiledf/images/img.png" alt="<?php the_title(); ?>" />
    									<?php }?>
                                    </a>
    								<h2 id="post-<?php the_ID(); ?>" class="naslov">
    									<a href="<?php the_permalink() ?>" rel="bookmark" title="Veza do stranice <?php the_title(); ?>"><?php the_title(); ?></a>
    								</h2>
                                        <small><?php the_author(); ?> </small> |
                                        <small><?php the_time('d.m.Y.') ?> </small>
    
                                        <div>
    	                                    <?php the_excerpt();?>
                                        </div>
                                </div>
    						<?php endforeach; ?>
    
                            <?php prvareklama(); ?>

    It is not as simple as you think. Any idea? :/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic