• Hello, I have a few custom templates in my WordPress, like contact and so one. But why search cant find content what is in my custom templates ? My WordPress version is 5.0.3.

    When i search information from pages what is made in WP admin panel the search works perfect, but when i try something what is in my custom template it just didn’t find anything.

    What am I missing and how to fix this ?

    • This topic was modified 5 years, 6 months ago by Jan Dembowski.
    • This topic was modified 5 years, 6 months ago by Jan Dembowski.
    • This topic was modified 5 years, 6 months ago by thranduil.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you define a Template Name in your custom templates?
    https://developer.wordpress.org/themes/template-files-section/page-template-files/

    & are you looking at the Block or the Document section of the editor sidebar? If you click Document in the top right & then scroll down to page-attributes, you should see all available page-templates in the dropdown under the Template heading.

    Thread Starter thranduil

    (@thranduil)

    I see my custom template at page attributes and it works as it should, but in search page i cant find content of custom templates. My content is not added as ussual page content for wordpress is added, but under the text input field I have made specific input fields what add content to my new template. Is this what is causing problems?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search cant find custom templates’ is closed to new replies.