Add a nice pagination without using plugin in WordPress

Here is the effect we are going to have:

Add a nice pagination without using plugin in WordPress

Ok, let’s get started!

 

Step 1: Add the following code to functions.php file(A bit modification based on “enhanced pagination by Sparklette Studio“).

 

Step 2: Add style to it by paste the following code to style.css file.

 

Step 3: Call the function by paste the following code to index.php or loop.php or where the function contains “have_posts()” function(If so, paste after this function), or where it says “Older posts”.

 

That’s it!

 

</catmee> 文章全部原创、谢绝转载,作者「BianLei」,如果喜欢欢迎分享链接,相关内容参见本站版权声明
如果您觉得本站的存在对您多少有所帮助,可以用手机支付宝扫一扫以下二维码支付任意金额作为支持:支付宝
本站相关:QQ空间 | Facebook
Tagged . Bookmark the permalink.

Create code highlighter without plugin by use “google-code-prettify” in WordPress
Create code highlighter without plugin by use “google-code-prettify” in WordPress

2 Ways to notify WordPress comments author upon their replies without plugins
2 Ways to notify WordPress comments author upon their replies without plugins

How to Cloak Affiliate Links in WordPress without Plugin
How to Cloak Affiliate Links in WordPress without Plugin

雨好大
雨好大

我在2006年之前的素描绘画(军舰,墙上画等)
我在2006年之前的素描绘画(军舰,墙上画等)

Comment Anonymously? No Problem! | 可以匿名评论了我会说?

Fill up Email address to subscribe reply and display your avatar from Gravatar (If any)
填写邮箱即可显示您在Gravatar的头像