Forum Replies Created
-
AuthorPosts
-
antmanMember
@songdogtech and @Summer, thanks for your thoughts on this 🙂
antmanMemberThanks, Adrea. Do you know of any way to test that the framework is actually working? Like looking for something specific when viewing the source code of the web page, or running a script to check for a defined variable, or something like that?
antmanMemberHello. Thanks for the tip!
Best,
AnthonyantmanMemberHi, Susan, thanks for your reply. The username had editor privileges. Maybe that's the issue. That gives me a lead to follow. I appreciate your help 🙂
-Anthony
antmanMemberAmped
antmanMemberAfter getting pointed in the right direction and doing a little research, this works:
// Exclude categories from author archive pages function exclude_categories_from_author_archives( $query ) { if( $query->is_main_query() && $query->is_author() ) { $query->set( 'cat', '-72,-74,-75' ); } } add_action( 'pre_get_posts', 'exclude_categories_from_author_archives' );
Thank you, Jennifer B. & Bill Erickson! For great info on customizing the WordPress query, check out Bill's post:
http://www.billerickson.net/customize-the-wordpress-query/ -
AuthorPosts