Before you ask please READ THIS

Search problem

in PhotoProof Posts: 115
I have enabled search on the website and have noticed that people are having problems with some of the searches.

1. Search does not find certain tags (I noticed them).
Example

* Post URL: https://www.robertobilic.com/odrzane-14-rijecke-stepenice/
* A tag that the search does not find: https://www.robertobilic.com/tag/code-by-botun/
* One more: https://www.robertobilic.com/?s=talijanska+škola+mode+i+dizajna+callegari
* One more: https://www.robertobilic.com/?s=grad+koji+teče
* https://www.robertobilic.com/?s=udruženje+obrtnika+rijeka
* With 2 words: https://www.robertobilic.com/?s=salon+dajana
* A multi-word tag that the search finds: Cafe del Mar https://www.robertobilic.com/?s=cafe+del+mar

Many tags in this post search cannot found, but some can. Like this
https://www.robertobilic.com/?s=riječke+stepenice

2.. When is results zero page is different (show albums, pages, category and etc. which is not the way it is for me when there are search results as I have set up see screenshoots

3. Where translate (X Search results for "TERM"). Check in po/mo files and it's translated.

Thanks
Snimka zaslona (11).png
1920 x 1080 - 605K
Snimka zaslona (12).png
1920 x 1080 - 596K

Comments

  • Posts: 115
    I try change theme from my child to original where no any changes, but same problem
  • Posts: 115
    I found this. So found tags which is in text, but which is only on tags no.
    Does WordPress Search Include Tags?

    By default, WordPress search doesn’t include tags. The easiest way to make tags searchable is by using a custom search plugin like SearchWP.

    SearchWP also has a relevancy slider, so you can control exactly how much tags influence where an item appears in the search results.
    https://www.wpbeginner.com/wp-tutorials/how-does-wordpress-search-work/
  • AirAir
    Posts: 10,970
    robi052 said: I found this. So found tags which is in text, but which is only on tags no.
    So it only searches for tags now and by nothing else?
    robi052 said: . When is results zero page is different (show albums, pages, category and etc. which is not the way it is for me when there are search results as I have set up see screenshoots
    Yes, when there is no result WordPress brings almost the same page as for 404 error(at least it treats the content of page in the same way). It is called no-content. It is like this in the theme from our first theme :D

    If you don't like it you can edit "no-content.php"

    With kind regards.
  • AirAir
    Posts: 10,970
    robi052 said: Where translate (X Search results for "TERM"). Check in po/mo files and it's translated.
    I have just checked on the newest version of the theme and the translation works fine for the search result page.
    Maybe you have some overrides in your child theme that makes a mismatch between string in .po file and what is in index.php

    With kind regards.
  • Posts: 115
    First problem with tags only. I later found that the native wordpress search doesn't look at the tags, so that's fine. The only problem is if there are no search results with a broken design.
  • AirAir
    Posts: 10,970
    OK:-) Great that it is sorted out!
  • AirAir
    Posts: 10,970
    robi052 said: Do you check what is with search designe if is search resuts 0? Why is designe broken
    It is not broken :-)
    Air said: Yes, when there is no result WordPress brings almost the same page as for 404 error(at least it treats the content of page in the same way). It is called no-content. It is like this in the theme from our first theme

    If you don't like it you can edit "no-content.php"
    With kind regards.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion