Current User: Guest
Please consider registering

 
Search Forums:


 




Can't Paginate Posts within Custom Template Page

Post

jove - Member

9:52 pm - July 26, 2009

posts 1

 
1

Hello,


I'm making a site using a custom template page that i made. it's basically the same as the example given here: http://codex.wordpress.org/Pag.....e_of_Posts.


Anyhow, Id love to have the Inline Posts function to work, but for some reason it won't work on my custom page. It will though work on my index and archive page.... so not exactly sure the issue.


Any help would be much appreciated.


Thanks!!

Aaron - Admin

3:40 pm - July 29, 2009

posts 382

 
2

AWP is automatically disabled on normal pages, so you have to tell AWP that it should act like it is on an archive page.

If I remember correctly, add the following to your code just before the custom loop.

  1. <?php global $wp_query;
  2. $wp_query->is_page = false;
  3. $wp_query->is_archive = true;?>


Reply to Topic: Can't Paginate Posts within Custom Template Page

Name (Required):

EMail (Required):

Website):

Topic Reply:

HTML Editor
Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
3 + 3
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

 
 

About the Ajaxed WordPress forum

Most Users Ever Online:

35


Currently Online:

9 Guests

Forum Stats:

Groups: 1

Forums: 4

Topics: 173

Posts: 462

Membership:

There are 193 Members

There have been 135 Guests

There is 1 Admin

There are 0 Moderators

Top Posters:

fromgrannie - 5

jakemc - 5

tombyrnes - 4

Siam - 4

flash - 4

BAM - 4

Administrators: Aaron (382 Posts)