How to ensure that a landing page created with WordPress does not enter the sitemap?
How to ensure that a landing page created with WordPress does not enter the sitemap?
How to ensure that a landing page created with WordPress does not enter the sitemap?
It’s actually not an issue at all, it works just like it’s supposed to, be sure to submit the index sitemap though, not the individual ones, so submit sitemap_index.xml. See this screenshot for reference to show that it works:
Search engines SHOULD respect the industry standard robots.txt file which you could use to block access to a post type. Such as blocking access to anything under example.com/deals. You could also go above and beyond and check the $_SERVER[‘HTTP_USER_AGENT’] for bots. Something like: $bot_list = array(“Teoma”, “alexa”, “froogle”, “Gigabot”, “inktomi”, “looksmart”, “URL_Spider_SQL”, “Firefly”, “NationalDirectory”, “Ask … Read more
The easiest way to see if W3 Total Cache is the cause would be to disable the plugin and see if that fixes the issue. But what you’re seeing is an unfiltered post. Usually, the content of the post is passed through the_content filter, and those shortcodes are replaced. Something in your search results is … Read more
The WP in their URLs is not related to WordPress, it’s just a shorthand for WebPage. These types all have the type WebPageElement as parent. In my opinion, using WebPageElement or one of its sub-types (like WPHeader etc.) is pointless for general web pages (there are some special cases and non-HTML contexts where it might … Read more
If you wrap some content in a is_user_logged_in() condition, all that content will only be rendered to users who have an account on your website and are logged into that account. Now, do Google bots have an account on your website? Hell no. So no, that content will never be indexed by Google in your … Read more
You need to place the following code in your theme’s search.php file. <?php $search_query = get_search_query(); if ( $search_query == ‘gold’ ) { echo ‘my gold ad’; } else if ( $search_query == ‘oil’ ) { echo ‘my oil ad’; }
I just ran a test on my hosted dev site. I ran the following: echo ‘<pre>’; global $wpdb; print_r($wpdb); print_r($GLOBALS); echo ‘</pre>’; There was no ‘wp_query’, ‘[q]’, or ‘search’ variables to be found. Note that I was not able to search this through a search engine as it’s not web accessible. Just to give you … Read more
Try an SEO or meta tag plugin that will give you the most options to work with meta for the home page, for post pages, static pages, etc. It’s not enough to simply add one metatag to the header template. http://wordpress.org/extend/plugins/search.php?q=SEO&sort=
How about something like this on your functions.php: add_action(‘wp_head’, ‘no_robots_on_uncategorized_posts’); function no_robots_on_uncategorized_posts() { if(in_category(‘uncategorized’)) { wp_no_robots(); } } This will output the following line of code on the header of your ‘uncategorized’ posts: <meta name=”robots” content=”noindex,nofollow” /> What this means is that even though search engines will see the page, they will be told to … Read more