• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fandrejevic

    (@fandrejevic)

    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? :/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination not working ~ displaying homepage’ is closed to new replies.