Forum Replies Created
-
AuthorPosts
-
aaronjayMember
Hi, Thanks.
Unhooking and customizing the wp_link_pages() function was the solution. I found the Genesis version (genesis_do_post_content_nav) at line 339 of post.php.
Here's the code I used:
//* Customize display page links for paginated pages (i.e. includes the <!--nextpage--> Quicktag one or more times). remove_action( 'genesis_entry_content', 'genesis_do_post_content_nav', 12 ); add_action( 'genesis_entry_content', 'my_genesis_do_post_content_nav', 14 ); function my_genesis_do_post_content_nav() { wp_link_pages( array( 'before' => genesis_markup( array( 'html5' => '<div %s>', 'xhtml' => '<p class="pages">', 'context' => 'entry-pagination', 'echo' => false, ) ) . __( '', 'genesis' ), //add something here for prefix, ie: Pages: 'after' => genesis_html5() ? '</div>' : '</p>', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'next', 'separator' => ' ', 'nextpagelink' => __( 'Read More' ), 'previouspagelink' => __( '< previous page' ), 'pagelink' => '%', 'echo' => 1 ) ); }
aaronjayMemberHi, thanks. That plugin gave me the clue to what I was missing. The category and tag archive pages don't automatically look for categories on pages, so you have to set it.
The plugin does it like this:
// Add Page as a post_type in the archive.php and tag.php function category_and_tag_archives( $wp_query ) { $my_post_array = array('post','page'); if ( $wp_query->get( 'category_name' ) || $wp_query->get( 'cat' ) ) $wp_query->set( 'post_type', $my_post_array ); if ( $wp_query->get( 'tag' ) ) $wp_query->set( 'post_type', $my_post_array ); }
Cheers
aaronjayMemberHi,
I just tried that and still they don't show.
Thanks.June 1, 2015 at 9:30 am in reply to: How to Add Post Author Filter to Genesis Featured Posts Widget? #154391aaronjayMemberHi,
I like the Genesis featured posts widget and would love to have it work for this, but it looks like there are some good third party options as well.
The Author Recent Posts plugin would be great if it could be used on other pages besides only the single posts by author.
I also found: https://wordpress.org/plugins/acf-recent-posts-widget/
And the Shortcodes Ultimate Plugin has an option to list posts by author.
Thanks for your help.
-
AuthorPosts