Forum Replies Created
-
AuthorPosts
-
galbaras
ParticipantOK, I've found the problem and ... (drum roll) ... it's a bug in genesis_do_loop(). There are 2 of them, actually.
Line 30:
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
Should be:
$paged = get_query_var( 'page' ) ? get_query_var( 'page' ) : 1; // "page", not "paged"
Line 38:
'showposts' => genesis_get_option( 'blog_cat_num' ),
Should be:
'posts_per_page' => genesis_get_option( 'blog_cat_num' ), // "showposts" is depracated
If someone from the Genesis team is reading this, an update will be great. In the meantime, I've unhooked genesis_do_loop() and hooked in the correct code, so you can see the code in action on my site.
Best regards,
Galgalbaras
ParticipantIf I set the home page to display the latest posts, other things don't happen, like Jetpack sharing buttons won't work properly.
The question is what to do to make a static home page paginate. The "Blog" template should be done in a way that takes this into account. Supposedly, that's exactly what it's meant to do - serve as the main blog page.
galbaras
ParticipantThe content archives setting is set to "Display post excerpts". I've already tried the PHP code and it worked great on the output of the Featured Posts widget, but not on archive pages.
I've now switched to displaying 300 characters from the post content and filters work well in this setting, so I'm going to keep it, but if anyone knows the answer to my original problem, please tell me, in case the client wants to go back...
-
AuthorPosts