• Resolved ktrusak

    (@ktrusak)


    I am looking to display the page title and the manual excerpt only (no content, no images, no nothing).

    I stripped out the shortcodes and insert the excerpt code, just wanted to know how to get rid of the published date, author, image, content now.

    Here is a link to an Example Search

    Help is sincerely appreciated! Stuck on this one

Viewing 7 replies - 1 through 7 (of 7 total)
  • Drop a copy of the search.php template file into the WordPress pastebin and post the pastebin url here. Perhaps someone will be able to spot the problem and suggest a solution.

    Thread Starter ktrusak

    (@ktrusak)

    Here is a copy of the search.php file

    https://pastebin.com/FWfm8jVE

    Did you add:
    get_template_part('content', get_post_format(), the_excerpt());

    Only that’s not going to work. You’ll either need to edit all of your content-xxx.php template files and include some conditional code for when these posts appear on a search results page. Or you’ll need to remove that line and replace it with the code from (say) content.php.

    Thread Starter ktrusak

    (@ktrusak)

    The default with the theme (artisteer generated) was get_template_part(‘content’, get_post_format());

    I just looked over the content.php, here is the pastebin https://pastebin.com/EAi5dWPu ,is there a code to display the article title (and link) but strip the date, publisher, thumbnail? I figure for the actual content I could reduced the auto excerpt size to 0 to get rid of that, but leave the manual excerpt in.

    Remove that line and try replacing it with https://pastebin.com/7jDeKQha

    Thread Starter ktrusak

    (@ktrusak)

    Thanks for your help Esmi, I appreciate it– That’s exactly what I was looking for

    Glad I could help ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Editting Search Results’ is closed to new replies.