Jump to content

Website Pagination Links


littlemisssunshine

Recommended Posts

Hi everyone!

 

I'm creating a blog for someone here: http://test4.neshayasmin.com/

 

I've used this theme as my foundation, but I'm making changes to its appearance: http://themeforest.net/item/novelty-retina-ready-responsive-wordpress-theme/4367335

 

I want to change the appearance of the older/newer buttons at the bottom. At the moment each page is numbered at the bottom of the blog, but I want to have an 'older posts' and a 'newer posts' link instead.

 

I don't have very good knowledge of php.

 

Any help would be wildly appreciated, friends.

 

Let me know if you need any more info.

Link to comment
https://forums.phpfreaks.com/topic/281119-website-pagination-links/
Share on other sites

Hi,

 

Thanks for the link, it was helpful! I tried everything suggested in that thread but nothing changed on my blog. This is my index.php:

<?php get_header();  ?>

<div id="content">
    <div class="container">
    	<div class="blog-block mb80">

			<?php if ($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
			    <article id="post-<?php the_ID(); ?>" <?php post_class('blog-post-wrapper'); ?>>
			    	<?php if (get_post_format()) {
						get_template_part( 'include/' . get_post_format() );
					} else {
						get_template_part( 'include/standart' );
					}?>

			    </article>

			<?php endwhile; endif; ?>

			<?php bmd_pagination(); ?>



		</div>
    </div><!-- end div.container -->    
</div><!-- end div#content-->

<?php get_footer();  ?>

I tried inserting this:

<?php next_posts_link('Older Posts'); ?>
<?php previous_posts_link('Newer Posts'); ?>

 

 

Above this:

<?php bmd_pagination(); ?>

 

But nothing changed on my blog.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.