How to Search Posts by Title Only in Elementor?
Do you want to search blog posts by title only? By default, Elementor or WordPress searches through all post content, including titles, excerpts etc. and this can make it difficult to find the exact content a user is looking for. By limiting the search to post title only you can provide much more relevant results to users.
With the Search Bar widget from The Plus Addons for Elementor, you can easily limit the search to post title or other parts of the posts.
To check the complete feature overview documentation of The Plus Addons for Elementor Search Bar widget, click here.
Requirement – This widget is a part of The Plus Addons for Elementor, make sure its installed & activated to enjoy all its powers.
To do this, add the Search Bar widget on the page or template and follow the steps –
1. Open the item under Search Bar and select Post from the Source dropdown.
2. From the Select Type dropdown, select Posts.
Now, you should be able to see a dropdown beside the search bar.
Then make the necessary changes to Label, Placeholder and Show Index sections.
3. After that go to the Standard Search tab.
4. Click on the Generic Filters section and only keep Search in Title enabled and rest disabled.
Now this will limit the search to post title only and it will not look into other parts of the post.
Note: In a similar way you can limit the search to different parts of posts only.
Also, read How to Search by Post Category in Elementor.