See more...

How To Add Page Numbers To Thesis Theme For WordPress

Although there is a WordPress plugin available known as WP Page Numbers through which you can replace WordPress default Older Entries / Newer Entries Or Next Page / Previous Page links with cool page numbers but configuring this plugin with your WordPress theme requires basic PHP knowledge. This tutorial will explain you how you can add page numbers to a well known WordPress theme known as Thesis 1.5.

How To Configure WP Page Numbers In Thesis Theme For WordPress

  1. Download, install and activate WP Page Numbers plugin from here
  2. Login into your WordPress account as an administrator i-e
    Navigate to Appearance -> Editor from sidebar
  3. Now you have to edit content_functions.php which will be located in thesis -> lib -> functions
  4. After opening content_functions.php find the function named thesis_post_navigation in PHP code
  5. Now replace the following two lines of code
  6. next_posts_link('← ' . __('Previous Results', 'thesis'));previous_posts_link(__('Next Results', 'thesis') . ' →');
    with as shown in the screenshot below
    < ?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>

  7. Click on the update button and proceed to Settings -> Page Numbers to select an appropriate style for Page Number display
  8. Ur done :)

Contact Us for News Tips, Corrections and Feedback

Related posts

Leave a message...

    flavius11 years, 8 months ago

    what do you do if you need to update thesis? :)

    anyway, a simpler workaround for this tutorial would be do disable thesis’ post navigation by adding the following line to custom_functions.php:

    remove_action(‘thesis_hook_after_content’, ‘thesis_post_navigation’);

    and then add wp page numbers instead by adding the following line to the custom_functions.php file:

    add_action(‘thesis_hook_after_content’, ‘wp_page_numbers’);

    and that’s it :)

    hope this helps.

    aviatioMY (MALAYSIA)11 years, 9 months ago


    im using Theis 1.6,

    could you make it to me??

    i follow your tut by using this one, but not word at all, im so frustrated..


    thesis 1.6 directory have the …/functions/content.php

    please notify me by email..

    Thank you.

    Sohail Ahmed11 years, 10 months ago

    You should have published the code as text not as screen shot…