Archive for category WordPress

WordPress Front Page Posts Page id

Recently I have configured the ‘Front page displays’ settings under Settings->Reading of my WordPress Admin, I have chosen a static page for my front page, and another page for my posts page. After doing so, everything works like a charm except one thing, My Posts page can’t have the page id retrieved.

After doing some research on the web, I found the answer to my question. To get the id of the Posts Page, I need to use the following line in my theme index.php file:

$frontpage_id = get_option('page_for_posts');

Hope this helps! :-)

2 Comments

WordPress Disable Auto Save

WordPress Auto-Save is a really nice to have feature if you are writing for CNN or BBC. As a regular blogger, this feature could double or even triple your database usage and overall memory usage! For a long time, the admin section of my this was really slow, it took me and the my host – Dreamhost some time to figure out the cause. It turned out that although WordPress has impressive user-friendliness, but it’s memory issue is a headache for bloggers blog on shared host.

Do disable the Auto-Save, you could open and insert the following line somewhere in the page wp-config.php:

define('WP_POST_REVISIONS',false);

There are plugins that you can use to switch off Auto-Save, but I don’t recommend using it, because it is such a simple task to do, by using a plugin for this task is really an ovekill.

Hope this helps! ;)

,

1 Comment

WordPress Gallery Plugin

The best WordPress Image Lightbox Gallery Plugin is Lightbox 2, it’s easy to batch upload and post gallery as a Lightbox gallery. It’s deadly easy to use, especially for those who need multiple upload and one click display.

I have tried many image plugins in the WordPress plugin directory. Many have many features but add extra steps to the posting process. There are two Lightbox 2 plugins in the plugin directories. So not to be confused, the one I am referring to is http://wordpress.org/extend/plugins/lightbox-2/

After doing upload, just insert image or gallery to your post or pages, and the plugin will do its magic to turn it into a lightbox!

Hope this helps! ;)

1 Comment