Here is a small… yes, a small function for displaying a paged navigation in your WordPress powered blog without using any plugin. The function is self-explaining, it accepts one optional parameter, the number of links to show without counting the previous and next buttons. It accepts your language The first, previous, next and last buttons… Continue reading WordPress page navigation without using a plugin
Category: WordPress
WordPress LTR/RTL
Hello, I found your website on a WordPress forum. Currently I am rebuilding a website in wordpress that is in English and Farsi. I am using the Qtranslate and a theme called suffusion which supports RTL. The theme does come a rtl.css which moves everything to the right which is great. The problem I am… Continue reading WordPress LTR/RTL
Detect 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:… Continue reading Detect WordPress version
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… Continue reading WordPress upgrade error (Allowed memory size of 33554432 bytes exhausted)
How can I set a WordPress page as my blog homepage
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… Continue reading How can I set a WordPress page as my blog homepage
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,… Continue reading My category order not working after WordPress upgrade
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… Continue reading On my WordPress theme, How can I find which page is being requested by the visitor?