Forum Replies Created
-
AuthorPosts
-
varickdesign
ParticipantNot sure if you were able to figure out your issues but check out this link for more info on the grid.
http://wpsmith.net/2013/genesis/genesis-grid-loop-in-genesis-1-9/
varickdesign
ParticipantThanks for following up - for some reason we did not see your reply but we were able to figure out before your reply came up.
Here is what we did which goes with what you replied back.
Thanks again for your generosity and knowledge.
varickdesign
ParticipantSorry one last item. Pagination.
Reworked the code you put up but we are now having an issue with pagination.
Here is the code we are using:We have added:
'paged' => get_query_var( 'paged' ),and
genesis_posts_nav();
But not working. Any help would be greatly appreciated.
Thanks
varickdesign
ParticipantThere is a whole bunch of ways to code that home.php. Other than a slider is there anything else you are looking for on the home.php?
varickdesign
Participant@daviddecker,
I sent in a support ticket can you cancel that?
Thanks
varickdesign
ParticipantThanks for replying.
So based on the coding you rewrote on gist you suggest using new WP_Query. That makes perfect sense and we are more acclimated to using this because of our development in Thesis.
Thanks for posting up the code - we can take it from here.
Appreciate your input. BTW - you were one of the reasons we were able to get going in Thesis and when you moved over to Genesis we followed also.
Thanks again for your contributions.
varickdesign
ParticipantDavid,
Thanks for following up and pinging Bill and Travis. We were going to do that ourselves but figured we should follow some protocol on the forums.
Just out of curiosity.
"Due to changes in WordPress core the custom grid loops in Genesis became an issue."
Was is it the core that changed or has it been that the Grid has always been inefficient or awkward that necessitated the change?
"Plugins like that from Bill Erickson do the queries the WordPress way and displaying the output via CSS column classes – which is the future-proof way to go".
A plugin that has been designed like this by Bill is that a core product of Genesis or is it separate? BTW we did try using the grid plugin but it did not address our query.
Thanks again for following up.
varickdesign
ParticipantDavid,
Thanks for replying.
We are not using the plugin ( http://wordpress.org/extend/plugins/genesis-grid-loop/ ) we are just coding it and we did go over the Travis Smith http://wpsmith.net/2013/genesis/genesis-grid-loop-in-genesis-1-9/ and Bill Erickson tutorials and they are still no help because they don't address the issue.
What we are doing is querying for pages with a meta and then sorting and then placing after the main page content.
Any help would be appreciated.
Thank you
varickdesign
ParticipantThis is an issue with the Grid Loop.
Place the code below in your functions.php and remove the post_per_page state in your grid loop in your home.php
add_action( 'pre_get_posts', 'wps_limit_loop_to_cat' );
/**
* Limit Grid Loop to a Specific Category on a Specific Page
*
* @author Bill Erickson
* @author Travis Smith
* @link http://www.billerickson.net/customize-the-wordpress-query/
* @param object $query data
*
*/
function wps_limit_loop_to_cat( $query ) {
// To Limit it on a page, change $post_id
if( $query->is_main_query() && $query->is_home() ) {$query->set( 'posts_per_page', '7' );
}
}varickdesign
ParticipantWhat version of Genesis are you using?
-
AuthorPosts