Jump to content


Photo
- - - - -

Not sure where to place code for plug in


  • Please log in to reply
6 replies to this topic

#1 hypman

hypman

    Super Member

  • Members
  • PipPipPipPip
  • 113 posts
  • LocationUK
  • Framework Version:iblog pro
  • Country: Country Flag

Posted 11 March 2011 - 05:17 PM

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

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 11 March 2011 - 06:43 PM

Which theme are you using?

#3 hypman

hypman

    Super Member

  • Members
  • PipPipPipPip
  • 113 posts
  • LocationUK
  • Framework Version:iblog pro
  • Country: Country Flag

Posted 12 March 2011 - 10:27 AM

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

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 12 March 2011 - 06:37 PM

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">

`

#5 hypman

hypman

    Super Member

  • Members
  • PipPipPipPip
  • 113 posts
  • LocationUK
  • Framework Version:iblog pro
  • Country: Country Flag

Posted 15 March 2011 - 12:43 PM

thanks Catrina that why i couldnt see them : ) Garry

#6 wphostmanaged

wphostmanaged

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationOttawa
  • Framework Version:Platform Pro and Pagelines Lite
  • Country: Country Flag

Posted 29 March 2013 - 01:25 AM

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

 

Is there another file?



#7 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 29 March 2013 - 03:30 AM

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.