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
  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( <div style="display:none;"> <a href="">343333</a> <div> 'genesis_entry_content', 'show_full_content', 1 );
function show_full_content() {
  if( ! is_category( 153 ) ) //* 153 is the category ID.
  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.

Share This Article

Subscribe Membership Plan ($9.99/mo)

  • Get full access to all premium tutorials
  • Get Support for the posted content
  • Request for specific how-to tutorials
  • Cancel the subscription at anytime

Reader Interactions

Leave A Reply

Your email address will not be published. Required fields are marked *