Header live search

Posted in: Newspaper
Post count: 44

I want it to search the entire content of the website (posts and pages)
what should i write in the post type ?

https://prnt.sc/LBLjCPMXVo7k

Post count: 27744

Hello,

You can let it empty as it is now. The search will displayed the posts and pages

Thank you!

Post count: 44

Now when I press search i see only posts results
and in address bar i see this /?s=petra&post_type=post

Post count: 44

You can try to search for word “faros” in this site https://bit.ly/3jmoHJg

when click in search button, i see results only in posts /?s=faros&post_type=post

when i click view all results, working fine ?s=faros

https://prnt.sc/zjarg5bBnpSY

Post count: 21065

Hello @webarts !

I can see that the pages are showing in the results too. Try to search “home”.

Thank you!

Post count: 44

Hello Bettina

I write home and I click in search button https://prnt.sc/xRYfn4mmZt7-

the results is no posts https://prnt.sc/mLGNDievK3M6

Post count: 21065

Hello @webarts !

Make sure you did not set up to exclude pages in the search page.

Thank you!

Post count: 44

This is the configuration https://prnt.sc/pQF54xKOw_zR

i think that is a bug

Post count: 44

this is blank https://prnt.sc/l3_EozrvxCgQ but in url add this /?s=faros&post_type=post

Post count: 21065

Hello @webarts !

Edit the search page with the TagDiv Composer and check the elements settings.

Thank you!

Post count: 44

sorry … I didn’t understand which settings I should check

Post count: 21065

Hello @webarts !

If you edit the search template, you’ll see the search element which is different than the one from the header. Also, check the settings from the posts loop element from the same page.

Thank you!

Post count: 44

Yes in header i use the element “Header live search”

in search template i use search form and Posts Loop

the search form working correct search to posts and pages

the problem is in Header live search which search only in posts !

Post count: 44

In the element “Header live search” when the Post type field is blank, searching only in post

What should I write in this field to search both articles and pages?

https://prnt.sc/RgiLNOCbob6p

Post count: 21065

Hello @webarts !

This element is the header live search: https://prnt.sc/xRYfn4mmZt7-
And the result is a page, in this case: home.
What is not working is in your search template/page: https://prnt.sc/mLGNDievK3M6 right?
So, when you see this page, click on the green button “Edit with the TagDiv Composer” and check the settings carefully.

Thank you!

Post count: 4

I am using the normal search form – As you can see here https://prnt.sc/BOqJa4SZDYvb
This is the name of the search form https://prnt.sc/SyweKAHvz58V

However, I have tried almost everything and on the search still showing pages…I want only to show posts

Post count: 21065

Hello @walterjoao20 !

I’ve already replied in your own topic.
Please write post in the post type option.
Also, in that flex block which displays the results.

Thank you!

Viewing 17 posts - 1 through 17 (of 17 total)
The forum ‘Newspaper’ is closed to new topics and replies.