How to re-enable being found by Google
Found the solution myself: Settings -> Reading -> Discourage search engines from indexing this site (must be blank)(bottom of page)
Found the solution myself: Settings -> Reading -> Discourage search engines from indexing this site (must be blank)(bottom of page)
Add in the search parameter to your query: $search_filters = array( ‘post_type’ => ‘page’, // Doorzoekt alle post types ‘s’ => $keyword // show only posts that meet the current search query ); And above that you should just be able to grab the keyword right from your querystring like so: $keyword = $_GET[‘s’]; There’s … Read more
Those “definable settings” are constants. WordPress defines its default constants in this file. If a constant definition is wrapped in a defined() check, like this: if ( ! defined( ‘WP_DEBUG_DISPLAY’ ) ) { define( ‘WP_DEBUG_DISPLAY’, true ); } Then it means you can define it first in the wp-config.php file (or, apparently, this framework’s config … Read more
There are two places bots would look: your sitemap (if you submitted one to google), and your robots.txt. WordPress itself doesn’t put anything in robots.txt (unless you set your site to private, then it tells the bots not to index anything), nor does it create xml sitemaps that google would use. There are a few … Read more
Really depends on how your redirects are set up. But you can check the status code using Firebug (or a comparable tool with a request profiler). Open up the “net” tab in firebug, and hit one of your old URLs. You should** see the request show up at the top of the list, and you’ll … Read more
When you hear about SEO-friendliness of CMS it is essentially same as for static page – how URL looks and what gets into source of page. Essentially WP is considered SEO-friendly because: It is easy to get pretty permalinks enabled and working There is large choice of themes and plugins, aimed at following recommended SEO … Read more
If you look at your code, you see that parameters for a WP_Query are defined in $defaults. There is also ‘post_type’ => ‘any’ defined which could be changed to ‘post_type’ => ‘post’ to query only for posts, not pages etc. As you see later on, the search function redefines the post_type to $context based. After … Read more
I think you should be able to set publicly_queryable to false, which should prevent those ugly permalinks from being generated / working.
I had a quick grep for SQL_CALC_FOUND_ROWS and found a few instances. I’m not sure which one is being called in your case, but here’s an interesting one from wp-includes/class-wp-query.php line 2904 onwards: $found_rows=””; if ( ! $q[‘no_found_rows’] && ! empty( $limits ) ) { $found_rows=”SQL_CALC_FOUND_ROWS”; } $old_request = “SELECT $found_rows $distinct $fields FROM {$wpdb->posts} … Read more
Searching in wordpress using wp_term_taxonomy table