It is actually pretty annoying to bend WP_Query
for it. However there is convenient get_page_by_title()
function that can do just that. Despite the name it allows you to pass other post types as third argument.
Related Posts:
- How can I implement a location based (zip code) search in WordPress?
- How to highlight search terms without plugin
- Template issues getting ajax search results
- How do I search events between two set dates inside WP?
- Complex Search functionality. Advice needed
- How to use next_post_link and previous_post_link on single posts in search results
- Why is there a class=”screen-reader-text” on my search button?
- can’t limit search to only pages
- Include custom table into search results
- How to exclude post body from WP search
- ElasticPress Indexing multiple sites
- How to search through pdf media files?
- Search outside of the “loop”
- Replace URL with Site Title in Search Results
- Force WP to use a certain search template
- Do not allow to search certain words
- Display title for search engine visitors
- How to avoid the specific page while searching in WordPress without plugin?
- Best way to Integrate Google Search?
- Related Tags Concept
- How to add additional search terms (e.g. synonyms) to the search?
- Combine internal search with Google custom search?
- Any reason why search result lists only one entry?
- Display just child pages of a certain page in search results
- How to make wordpress default search to woocommerce search
- pre_get_posts action: Search by post_title and post_content with different search phrase in the same query
- Why won’t is_search work inside functions.php?
- Search functionality – include date, category and author search
- WordPress Search matching hyphenated words
- How to make wordpress Dynamic Search-Bar from Predesigned Static Html Search-Bar?
- How to stop WordPress Search form from searching only in current page?
- How can I make a search form that can search taxonomies and posts?
- How can I include author (their archive page) in search results?
- How to search media library alt text and title fields
- how to create search and filter form generating “plus” symbols in url in between category names?
- Meta query: How do I return posts within a date period from a given month?
- Creating a Searchable PDF Archive of Publications
- Search media by title and description – Frontend
- Display post titles that match string in post content
- How to display search results in search.php
- Search – Only search for post meta field
- Search Form Based On Tutorial Not Working
- how to show Author information in search results
- Why should we use the name attribute with the value “s” in the creation of the search form?
- Sitelinks Search box schema confusion
- Display Search Results after search 1st link
- Make archive page show up in search results?
- Connecting Google Site Search with WordPress Taxonomies/Categories/Tags
- When clicking on submit from my searchform it takes me to home.php
- Only display post content in search results
- My search form finds page 1 results but shows “error 404 page not found” on pages 2 on or clicking next
- meta post search
- twentyeleven theme: Where is the code that handles moving the search bar on resize?
- search page not found? (search.php or searchpage.php)
- Media Library / Backend: How can I search for text in the ALT Text field?
- Rewrite wp function
- Search custom posts by meta key in admin
- How to fetch Email addres of an author via ID?
- How to Fix Form elements do not have associated labels in WordPress Search Form (without button)
- Search within the current page
- How to exclude specific post_type from default search?
- What are the available options for “Name” in WP search?
- how to make search with two input boxes
- WordPress search with more input fields?
- Search issue on special Character
- Modify main search form to search user too
- Editing a Search Form
- Removing &submit=Search from search parameters?
- I have dynamic title tag in my wordpress but seo analyst show “No title Tag found error”?
- customize search result in wordpress
- Highlight search words in excerpt
- $_GET value is losing it’s space
- limit the number of searches
- Search For Custom Post Type and Custom Fields
- How can I prevent the Search Results Page from changing title?
- Problem with site’s search results “Read More” link?
- Searching on my blog is not working
- WP search in metadata post
- “Modular/reusable” content and search results
- Make the title and […] clickable in result search
- Add Search Form to Dropdown menu
- Search doesn’t work with ‘relation’ => ‘OR’
- Add meta tag to search results
- Searchform for searching specific categories
- Selectbox and Searchform and Custom Search Page
- Hightlight search-terms with functions does remove or disable other filters?
- wp_redirect and search engine bots
- SQL: Search query to get attachments only of those parents which are published
- Strip the + symbol from the_search_query
- Change the text “search result for” on search result page
- Search redirects to index
- Want to creat a search for my wordpress theme [closed]
- How to remove search bar from the blog post
- Return 404 for /search/ queries – For Genesis
- Deprecating WordPress URL from Google, promoting custom domain [closed]
- Search and replace titles of posts with specific tags
- Search with multiple selects that include tags
- Search results from a specific database table
- WordPress Search – Reject partial matches
- Wp query search built out of 4 terms?