Drop the following code in your functions.php file
1 2 3 4 5 6 7 8 |
add_action( 'genesis_entry_content', 'show_full_content', 1 ); function show_full_content() { if( ! is_category() ) //* returning early if it is not a category page return; add_filter( 'genesis_pre_get_option_content_archive', '__return_false' ); //* disabling the excerpt add_filter( 'genesis_pre_get_option_content_archive_limit', '__return_false' ); //* disabling the content limit option } |
if you are targeting the specific category page then use the following snippet:
1 2 3 4 5 6 7 8 |
add_action( 'genesis_entry_content', 'show_full_content', 1 ); function show_full_content() { if( ! is_category( 153 ) ) //* 153 is the category ID. return; add_filter( 'genesis_pre_get_option_content_archive', '__return_false' ); add_filter( 'genesis_pre_get_option_content_archive_limit', '__return_false' ); } |
153 is my “Plugins” category ID. So code is only executing when a user is visiting my “Plugins” category archive page. Checkout this link for more details about WordPress’s is_category() function.