Sign in to follow this  
Followers 0

Not sure where to place code for plug in

7 posts in this topic

Posted · Report post

Hi Im trying to add page numbers to my theme but i cant see where the developer says to add the code. I just want to check things before i do this as i dont often edit code and dont want anything to go wrong with my site. This is what the developer says: Add the code where you find previous_post() and next_post() functions. If you can't find these tags, place the code between endwhile; and endif; in the_loop. Code to add in your theme <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?> So my question is, exactly where should i add the code? I cant see anything like this in the theme? thanks

Share this post


Link to post
Share on other sites

Posted · Report post

Which theme are you using?

Share this post


Link to post
Share on other sites

Posted · Report post

Sorry, i should have said, its i blog pro. IM not even sure if this theme is compatible with page numbers? thanks Catrina

Share this post


Link to post
Share on other sites

Posted · Report post

The previous_post() and next_post() functions you're looking for are located in the _pagination.php file. This is what it looks like: ` span class="previous-entries"><?php next_posts_link(__('Previous Entries', TDOMAIN)) ?> <?php previous_posts_link(__('Next Entries', TDOMAIN)) ?> `

Share this post


Link to post
Share on other sites

Posted · Report post

thanks Catrina that why i couldnt see them : ) Garry

Share this post


Link to post
Share on other sites

Posted · Report post

I'm trying to do this in Pagelines Lite... there is no _pagination.php file to edit.

 

Is there another file?

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, Iblog pro is a legacy theme so it was structured differently to the Pagelines Framework. In the framework pagination is a section, so they'll be separate files for the various sections.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0