WordPress.org

Ready to get started?Download WordPress

Forums

How to get Seach option on my website to link all posts including picture posts (20 posts)

  1. Catherinewhit
    Member
    Posted 2 years ago #

    I cannot get my search option to pull up links of all my posts it only pulls up the text posts.

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    It can only search the text that is in the post. Try giving the images alt tags, titles, names, or captions.

  3. Catherinewhit
    Member
    Posted 2 years ago #

    Thanks for your suggestion, but the images are tagged and categorized and I linked the categories.

  4. Catherinewhit
    Member
    Posted 2 years ago #

    The headline- or subject line- comes up, but no image. All the categories and tags are listed on th epost also.

  5. Jonas Grumby
    Member
    Posted 2 years ago #

    You probably have search.php in your theme set to show the_excerpt and you haven't entered anything into the Excerpt dialog box on the edit post screen. If you leave that box empty, it will not show images as part of the excerpt. It will show the first 55 words of the post's content. If there is no content other than the image, it will show nothing.

  6. Catherinewhit
    Member
    Posted 2 years ago #

    What would I enter in the excerpt? a common tag or category? Or take out the search php?

  7. Jonas Grumby
    Member
    Posted 2 years ago #

    If you enter an image tag (e.g. <img src="whatever/your/image/path/is/image.jpg"> into the Excerpt dialog box on the edit post screen, then the image will show in the search results. The easiest way to get the correct code to enter into the dialog box is to switch the editor into HTML mode and copy & paste the image tag into the Excerpt dialog box.

  8. Catherinewhit
    Member
    Posted 2 years ago #

    Awesome!!!! going to work on it right now!!!
    Thanks so much!

  9. CoastalData
    Member
    Posted 2 years ago #

    Also, what theme are you using? I think Atahualpa, for instance, has a configurable list of HTML tags that it strips out of the search results, and by default, it does strip img tags.

  10. Catherinewhit
    Member
    Posted 2 years ago #

    Twenty eleven on my blog and Memoir 2.7 on my website

  11. Catherinewhit
    Member
    Posted 2 years ago #

    Is there a general format for that?

  12. Jonas Grumby
    Member
    Posted 2 years ago #

    Atahualpa has a "Don't strip these tags" option in the excerpts configuration.

  13. Jonas Grumby
    Member
    Posted 2 years ago #

    @Catherinewhit you should not have to worry about that. Images are stripped from excerpts in all themes unless you specify an image tag in the Excerpt dialog box like I mentioned.

  14. Catherinewhit
    Member
    Posted 2 years ago #

    I am methodically adding the specfic HTML tags to all specific excerpt boxes. It iwll take a while. but it works ;)

  15. Jonas Grumby
    Member
    Posted 2 years ago #

    Glad to hear it works. Please mark the thread resolved so others who have the same question may benefit.

  16. Catherinewhit
    Member
    Posted 2 years ago #

    It worked on my blog twenty eleven, but not on my website- memoir 2.7 theme

  17. Jonas Grumby
    Member
    Posted 2 years ago #

    I'm not familiar with that theme. Is search.php set to show the_excerpt in that theme?

  18. Jonas Grumby
    Member
    Posted 2 years ago #

    You would have to ask at https://www.elegantthemes.com/forum/

    You can't get support for paid themes here.

  19. Catherinewhit
    Member
    Posted 2 years ago #

    actually it shows disabled but when I enable it I can get the images0 of course I have to add 373 HTMLS, but I'm happy to see the images in search! That was such a help! Thaks so much!

  20. Jonas Grumby
    Member
    Posted 2 years ago #

    Are you saying that in the Memoir theme there is a way to enable/disable the images? I can't comment on that because it is not a free theme and I don't own a copy of it. I assume it works fine in the Twenty Eleven theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.