Tag Archives: Search

A description for this result is not available because of this site’s robots.txt

Have you ever found your website Google search result with description like this, “A description for this result is not available because of this site’s robots.txt – learn more.”. All those SEO keywords, descriptions seems not working in this case.

Continue Reading →

Limit WordPress Search Results to Certain Post Types

WordPress built-in search function searches all post types by default. Sometimes, we want to have some controls over what should be searched and what not. For example, on a blog website, I pretty much want to limit the search within “post” post type, but ignore “page”.

Continue Reading →

How to Redirect to Post if Search Result Returns Only One Match

When someone searches your blog using WordPress built-in search engine, the results are displayed as a list. Wouldn’t it be nice if we can redirect the visitor directly to the post when there is only one match in the search list? Here is a snippet can do just like that.

Continue Reading →