Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active October 14, 2017 21:47

Revisions

  1. srikat renamed this gist Dec 22, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. srikat created this gist Oct 10, 2013.
    10 changes: 10 additions & 0 deletions functons.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    add_action( 'genesis_before_loop', 'sk_excerpts_search_page' );
    function sk_excerpts_search_page() {
    if ( is_search() ) {
    add_filter( 'genesis_pre_get_option_content_archive', 'sk_show_excerpts' );
    }
    }

    function sk_show_excerpts() {
    return 'excerpts';
    }