-
Notifications
You must be signed in to change notification settings - Fork 867
Calling FoundationPress_pagination in a custom query #229
Comments
Run the loop and use the pagination function.
|
Thanks very much for your reply. I've kept your snippet for future reference, and used part of it to help me find a solution for using wp_query.
Two things tripped me up, seems that using the variable name $wp_query is important, and also if you have a page slug and custom post type called the same thing, you'll get a 404 permalink problem. Thanks. |
The slug and custom post type is a known wordpress problem. There is a fix for this. Variable name is not important if you run the loop with the same variable name as specified. If none specified wp_query is default. query_posts($args) will manipulate the default wordpress query. |
I see, that's great, thanks for your help! |
Hi, is it possible to call the built in pagination function using a custom query (I'm retrieving some custom posts using $loop = new WP_Query( $args ); etc)
Thank you for an excellent starter theme!
The text was updated successfully, but these errors were encountered: