S
S
Sergey2018-09-06 08:36:24
WordPress
Sergey, 2018-09-06 08:36:24

Why does an error appear when searching in the default WordPress search template?

I took the search.php, content-search.php, content-none.php files from the base WordPress theme (for example, from twentyfifteen) and copied them into my theme in the hope that everything would work. But in the end, it constantly displays content-none.php for me, because it doesn’t seem to find anything. But if you do not drive anything into the search and click "search", then it gives me the following error:
5b90bcce37668148629418.png
I just copied these files, did not change anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-09-06
@fenya-fl

The twentyfifteen_post_thumbnail function is not defined in your theme , which is called in the c content-search.php file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question