How do I only show the feature image + post title in search and archive?

Viewing 4 posts - 1 through 4 (of 4 total)
  • #17185
    Lisa
    Participant

    I don’t want anything about my post content to show when people browse through search, archives, and categories. I want the feature image with the post title underneath, and nothing else. Right now it shows this + the whole post content under the title, which looks a bit messy.

    #17195
    Daniel Tara
    Keymaster

    Open all content-*.php files and find this line:

    <?php if( ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>

    replace it with:

    <?php if( ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) && ! is_search() ) : ?>
    #17231
    Lisa
    Participant

    I just did this but it doesn’t make any difference at all. Any idea?

    #17291
    Lisa
    Participant

    Does anyone know? πŸ™

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.