Archive for the ‘WordPress’ Category.

Detect WordPress version

WordPress version

How can I detect the current WordPress version?
Log in to your admin Dashboard and scroll to the bottom of the page, you’ll find your version number on the rightmost spot of the footer.

Or you can view the source of one of the pages of your blog and look for the meta generator tag:
<meta name=”generator” content=”WordPress [...]

WordPress upgrade error (Allowed memory size of 33554432 bytes exhausted)

The problem
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2516315 bytes) in /home/mydomain/public_html/blog/wp-includes/http.php on line 1370
This can happen at any line and with any file, not only http.php at line 1370!
Explanation
Don’t worry if you get this error, there is nothing wrong with your server or hosting plan etc. Whenever a new [...]

How can I set a WordPress page as my blog homepage

WP homepage options

This can be done with a few clicks from your WordPress blog control panel.

So first login to your control panel, then

under the Settings menu choose Reading,
after the page finishes loading, choose A static page (select below) for the option Front page displays,
then on the first drop-down list  that follows choose the page you want [...]

My category order not working after WordPress upgrade

Description
You just upgraded WordPress and “My Category Order” (widget and functions) do not display any categories.
I hate to be you! But wait…
Solution
This is normal and you can fix it very easily by visiting the “My Category Order” page. When you visit the plugin page the first time after a WordPress upgrade, it will show this [...]

On my Wordpress theme, How can I find which page is being requested by the visitor?

So you want to know if the visitor is viewing the homepage, a category or a page? WordPress have easy functions for that:

is_home() : returns true if the visitor is viewing your blog homepage
is_category() : returns true if viewing a category archive
is_category(‘3′) : returns true if viewing the archive of the category with the [...]