Showing full content on category page

Drop the following code in your functions.php file

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:

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.

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.