2013-11-23

A Nostradamus Prophecy might speak about WordPress?

Years will pass quickly
Causing great tremors around the City of Matteus.
The Core will move at the speed of light,
And then Two Numbers will match


/**
 * The WordPress version string
 *
 * @global string $wp_version
 */

$wp_version = '3.8-beta-1';

/**
 * Holds the required PHP version
 *
 * @global string $required_php_version
 */
$required_php_version = '5.2.4';

2013-09-10

Testing Google Plus post embedding....

All you need is...
<div class="g-post" data-href="https://plus.google.com/106666163580246454307/posts/D82yhXHhhg9"></div>
The HTML is available by pressing "Embed Post" on the G+ post menu ([v] at the top right).



2013-06-19

WordPress: remove admin menu items

There are several well-written WordPress plugins that allow removing and re-ordering admin menu items. However, if you want something quick and simple for your site, the code snippet below may be useful. It removes all menus, except for Dashboard and WooCommerce "Products".

Feel free to modify is as necessary.

► Tip: you can print_r($menu) to see what to keep.


add_action('admin_menu', function () {
 if (current_user_can('administrator')) {
  return;
 }

 /**
  * Keep only specific menu items and remove all others
  */
 global $menu;
 $hMenu = $menu;
 foreach ($hMenu as $nMenuIndex => $hMenuItem) {
  if (in_array($hMenuItem[2], array(
       'index.php',
       'edit.php?post_type=product',
      ))
  ) {
   continue;
  }
  unset($menu[$nMenuIndex]);
 }
}

2013-02-12

Google keeps your “unnatural links” even after full site de-indexing!

Scenario

History: several years ago, before Panda and Penguin, you made a blog and posted some “made-for-Google” content there, with the only purpose of getting links to your main site.

Our days: you've learned that your spammy blog will cause a penalty, sooner or later, and decided to get rid of it.

Proposed (and failed) Action

Google says (here):
If you wish to remove your content using the URL removal request tool in our Google Webmaster Tools ...
To remove a directory and its contents, or your whole site, you must ensure that the pages you want to remove have been blocked using a robots.txt file.

Indeed, in a very short time, you try the site:my-crappy-blog.com query, and there is no results. Voila, it worked!

But then, you click on the “Links To Your Site” in the Webmaster Tools, and still see all the links, from the site that you have removed!

Just takes time?

You wait...

... forever. Links are there.

What happened?

Continue reading:
Content removed with this tool will be excluded from the Google index for a minimum of 90 days.
... and then what? So, the removal was only temporary?

Google clarifies (here):
Content removed using the URL removal tool will not appear in search results for a minimum of 90 days or until the content has been removed from the Google index. However, if you've updated robots.txt, added meta tags, or password-protected content to prevent it being crawled, the content should naturally have dropped out of our index, and you shouldn't need to worry about it reappearing after 90 days.
What about the links?

Nobody said anything about links! I've been watching the links from a removed site for about 6 months, in the Webmaster Tools.

The cure

Do not remove the site using Webmaster Tools; do not place robots.txt or meta tags.

Instead:

Make sure that Googlebot can crawl the entire site. That means, NO robots.txt!
Remove the CONTENT of the site. Let Google see empty pages, maybe with some text like “This site does not exist anymore. Good-bye!”.

Now, relax and watch your links disappear from the Tools.


P.S. The same applies for "glued" sites (when info:site1 and info:site2 show the same information). After cleaning the content, the sites will be "unglued".

2013-01-25

Google Reconsideration Request Form is limited to 5,000 symbols

The reconsideration letter to Google must explain in details what did you do wrong, how did you fix it and why should Google believe that you are not going to make it again.

Do not lie and do not hide anything. Google knows anyway. They want you to show that you also know everything. Do not expect that Google will reply with: "Oh, no, you have also this and that, please fix" - they will never tell you. You must discover and solve all the problems yourself.

I highly recommend you reading PERP: A Free Manual for Google Penalty Recovery before writing your reconsideration letter.

Remember: Panda and Penguin are not manual penalties. Submitting a reconsideration request will not work if you have one of those algorithmic penalties.

Then write as much as you can - but fit it into 5,000 symbols, because that's the submission form's limit.

Good luck!