2 Small Secrets About WordPress

It was a stressful time for me in the last few months. Besides the regular freelance work, I and my WordPress team are trying to build a new business at http://fitwp.com (From Idea To WordPress) and http://7listings.net (theme dedicated for “listsings” website like accommodations, tours, companies, rentals, …). And there’re a lot of work ahead.

But working with WordPress is always a great inspiration to me. There are moments to discover small things which are really interesting if you are passionate about it. Like the post title, I’ll share 2 such things that I just discovered in the last few days (there are a lot more before, unfortunately I didn’t note).

Quick search in Google Chrome

Assume you have a WordPress blog (like Deluxe Blog Tips). To find some content in the blog, you usually have to go the the blog homepage and type the keyword into search box. This takes times because you have to access your blog first. If you’re using Google Chrome (it’s my favorite browser because it has very easy to use Dev Tools), it can help you reduce redundant time by not accessing your blog and instead search right in the address bar.

Here is how to do that: At the address bar, type your domain and space, for example:

deluxeblogtips.com (space)

You’ll see this in the address bar:

Google Chrome Quick Search 2 Small Secrets About WordPress

Google Chrome auto transforms what we type into a search command and dispplay “Search deluxeblogtips.com”. To continue search, just enter keyword, for example admin, the browser auto redirects to the correct search page on the blog http://www.deluxeblogtips.com/?s=admin.

The good thing is Google Chrome doesn’t use its custom search functionality, like when we search a keyword in a website with command site:domain.com keyword. Here Google Chrome uses the blog search (e.g. WordPress search), the results are much more precise and reliable.

Bug of “nonexistent blog” in MultiSite

We know that to access the admin area of a blog in MultiSite, we have to go to the address http://domain.com/BLOG-SLUG/wp-admin. To access the admin area of main blog in MultiSite, we have to go to http://domain.com/wp-admin.

What will happen if we enter wrong BLOG-SLUG? Can we still access or will WordPress show us an error?

Logically, we think WordPress should show us an error like “Nonexistent blog”. But actually not! There are no errors at all. WordPress still allows us to access that address and you know what, that’s the admin are of main blog!

More special and more dangerous thing is any link in the admin area of this nonexistent blog works the same as in main blog, for example these links will work:

http://domain.com/ANYTHING/wp-admin/edit.php

http://domain.com/ANYTHING/wp-admin/general-settings.php

This is maybe a bug of WordPress. And if you meet this situation, I advice you to stay away, don’t do any action like edit posts, adjust settings, install plugins, … Who knows what happens after that!

I noticed this bug when one client accidentally sent me a link with wrong blog slug. At first, I thought that was a bug in my theme or plugin, but when tried with other MultiSite it happened the same. My luck!

Finally, hope you have great moments with WordPress and don’t economy your words to share them with everyone!

This post is also available in: Vietnamese

7 Comments

  1. Thanks for Sharing a great Post. Its Really Useful to everyone for beginner as well as experienced. Thanks again…

    Reply
  2. This is maybe a bug of WordPress. And if you meet this situation, I advice you to stay away, don’t do any action like edit posts, adjust settings, install plugins, … Who knows what happens after that!

    Reply
  3. Thanks for showing me how to search easily in google chrome.. I never really thought chrome recognizes wordpress sites

    Reply
  4. I tried the code above the post, and found it useful. It helped me a lot. Thanks for your post.

    Reply
  5. Great Article! This too had happened to me; a “Non Existent Blog”.. But to my luck got away with it, now I know why it showed that. Thanks for the tips, learned a lot by reading this.

    Reply

Leave a Reply