When we try searching for example.tld, then the default search query looks into the post title and content with:
... (wp_posts.post_title LIKE '%example.tld%')
OR (wp_posts.post_content LIKE '%example.tld%') ...
When we add an attachment or a local link, into the post content, we normally get the full url, for example:
http://example.tld/wp-content/uploads/2015/05/image.jpg
so I would think that you’re just picking up those in your search.
Try for example to create a post with the title Test but without any post content and see if it shows up in your search results.
Related Posts:
- Pretty permalinks for search results with extra query var
- custom naming of search permalink /search/
- Rewriting search permalink
- Search result permalink
- Changing search URL to something other than “search”
- Custom permalink for search and pagination
- How to make /search/ without parameters not return a 404?
- Is there a link parameter that will show me all my published pages?
- encoded search terms with %20
- How to add specific phrase to end of search url
- Cannot make custom search permalink to work in a fully custom theme. Search string $_GET[‘s’] is always empty
- Replacing + sign to – in wp Search Permalink
- Search page Paginations not working
- Pretty Permalink for Search Queries Not Working
- Permalink / sub-template issue
- Search points to /search/?s=KEYWORD instead of /search/KEYWORD
- Search results highlight breaks my read more link
- Non english characters in search bar
- Strange permalink issue: can’t rename /company-2/ to /company/
- How to get permalink and title from post ID?
- Using $_GET variables in the URL?
- Removing leading zeros from custom permalink structure
- How can I include a query string with get_permalink
- Post being redirected to attachment post
- Without index.php in permalinks I get 404 across site
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- How to assign a Permalink to a Function
- Redirect user if it’s not logged in
- Date archive permalink modification
- How to get this JavaScript working with get_permalink
- Add a css class to a taxonomy permalink
- Change of permalink structure – redirects in htaccess breaks the archive links
- Filter string like a slug
- 404 with post name permalinks
- Should there be a trailing slash in the permalink
- Link to external URL
- Confusion about how a URL is being parsed
- Woocommerce Product Attribute Permalink doesn’t work?
- Problem with wordpress links on a live site
- Permalink change redirects by WordPress [duplicate]
- WPML get permalink to the translated post from the original post
- page nested 3 levels deep shows 404
- Removing /author/ slug from URL gives 404
- Add custom post type name in term link?
- Can I create permalinks like this: /%post_type%/%postname%/
- Why the “Permalink” option is not showing in the “Settings”? [closed]
- How to get the full URL of the current page and change domain of it?
- Custom permalink structure: /%custom-taxonomy%/%post-name%/ (without CPT slug)
- get_permalink() is not working after published
- How can I get this custom post type permalink structure? %custom_post_type%-%taxonomy%-%term-postname%
- get_permalink returning site home url instead of the url of slug being passed
- WordPress add_rewrite_tag working for Posts, but not working for Pages
- Host frontpage via example.com and everything else via example.com/blog
- WordPress can generate numeric permalinks, which then 404
- 404 error using Meta for Permalink rewrite
- Different results between permalink and query var search
- Permalink changes gives me 404 [closed]
- WordPress suddenly changed all links to example.com/example.com/
- How to handle paging/pagination with a custom permalink?
- Environment independent way to link to certain pages on frontend
- Using one slug/post-name for multiple pages
- Custom URL rewrites for templates
- Gutenberg output URL to post from attribute with post ID
- Broken wordpress site, non-working links and no access to wp-admin page
- How can I get the list of all pages URLs including their shortlink IDs?
- How to change custom post type, blog post and page permalink by template?
- How to use Specific URLs for some posts
- WordPress Permalink
- How to replace permalinks
- Multiple Tags Issue in Permalinks
- Auto Changing Text Case
- Is it possible to change the permalink structure without changing the old permalinks to posts and without 301 redirects?
- Keep wordpress basic permalink preferences
- Adding a ‘blogs’ prefix in the URL structure but only for blogs
- .htaccess to redirect to a wp page
- How to redirect old permalinks to ones generated by [WP-Hashed-ID] plugin?
- How do I use the same Tag slug for different Tags?
- Permalinks are not working in WordPress
- One post but two separate permalink structure and template views
- permalinks constantly needs re-saving
- Retain Post title keywords in URL even if user changes post title or any other way to achieve SEO friendly permalink?
- How to change the URL using rewrite rule in wordpress
- Permalink not working in Apache on Linux
- HTTPS permalinks resulting in 404
- Changing Permalinks. Old links don’t work
- WP Job Manager Custom Permalink Returns 404 Errors
- Automatically remove repeated words in slug
- Permalinks – Archives
- Dynamically populate permalinks
- WordPress Pagination Not Working After Transfer from Localhost
- Accidentally changed the permalink structure
- Keep wordpress from modifying my permalinks
- How is a URL getting mapped to a page template
- customize urls displayed by previous_post_link and next_post_link
- Routing ‘fake’ sub sub posts
- Files placed in directory with wordpress 404
- Page and post auto links
- how to make follow?
- Permalinks Won’t Work
- My permalinks no longer have the “news” category prefix in the link and it’s causing 404 errors for articles published on the web