Hiding Custom Post Type from Google?

If you are using an SEO plugin such as Yoast, it automatically adds all Custom Post Types (and Taxonomies) to the sitemap that is used by Google & other search engines. You will need to explicitly exclude them from the sitemap e.g in Yoast, this is under the “Post Types”https://wordpress.stackexchange.com/”Taxomonies” tab in the “XML Sitemaps” … Read more

Simple way to search custom-post types only

To search for a custom post type , you can add to the query &post_type=events , to achieve this just edit your form like this <form id=”searchform” action=”http://localhost:8888/ltc” method=”get”> <input class=”inlineSearch” type=”text” name=”s” value=”Enter a keyword” onblur=”if (this.value == ”) {this.value=”Enter a keyword”;}” onfocus=”if (this.value == ‘Enter a keyword’) {this.value=””;}” /> <input type=”hidden” name=”post_type” value=”events” … Read more

What is a good robots.txt?

FWIW, trackback URLs issue redirects and have no content, so they won’t get indexed. And at the risk of not answering the question, RE your points 2 and 3: http://googlewebmastercentral.blogspot.com/2008/09/demystifying-duplicate-content-penalty.html Put otherwise, I think you’re wasting your time worrying about dup content, and your robots.txt should be limited to: User-agent: * Disallow: /cgi-bin Disallow: /wp-admin … Read more

Make Google index the entire post if it is separated into several pages

The basic problem for a script solution is: rel_canonical does not offer any useful filter. So we have to replace that function: remove_action( ‘wp_head’, ‘rel_canonical’ ); add_action( ‘wp_head’, ‘t5_canonical_subpages’ ); The next problem: $GLOBALS[‘numpages’] is empty before setup_postdata(). We could call that function already here, but it might have side-effects. Here is a solution that … Read more