Wordpress

wordpress releated post

Warning: Cannot modify header information – headers already sent by

Most of the time we donot actually care about leaving the blanks spaces before and after the “php” tag which results on “Warning: Cannot modify header information – headers already sent by (output started at /path/blog/somefile.php:4)“” . The above problem could be solved by removing the blank spaces before “<?php” tag and after “?>” tag.

Warning: Cannot modify header information – headers already sent by Read More »

Changing WordPress’ Autosave Frequency and Post Revisions

WordPress has a very nifty autosave feature which can be a lifesaver to anyone who uses WordPress. The downside to WordPress’ autosave, is that it creates a bunch of draft posts increasing your mySQL database size, especially if you write the post within WordPress’ post editor. If desired, it is possible to change WordPress’ autosave

Changing WordPress’ Autosave Frequency and Post Revisions Read More »

WordPress : Fixing Pagination on Custom Queries With query_posts

First off, custom queries are good for calling or excluding certain posts to a page.  Lets say we want to display 5 posts per page from category 10.  The best place to learn how to do this is the Codex.  You would probably start after reading that article like this: <?php query_posts(‘posts_per_page=5&cat=10’); ?> Now technically

WordPress : Fixing Pagination on Custom Queries With query_posts Read More »