when developing for WordPress sometimes you need to code a bit or change some features in WordPress. Hacking WordPress means using it not as a regular user with the obvious features, but to code PHP or change CSS when needed.
here are some cool and very helpful hacks:
Use pagination instead of “Next” and “Previous” Page Links
replace the next and previous links at the bottom of the loop with real php pagination.
Remove <P> for paragraph from content, excerpt or comments
use remove_filter when the loop arrives to one of these parts:
add this to your theme file: functions.php
remove_filter (‘comment_text’, ‘wpautop’);
remove_filter (‘the_content’, ‘wpautop’);
remove_filter (‘the_excerpt’, ‘wpautop’);
Use Custom page as home
Create a new page, go to setting -> reading ->
and for “Front page displays” choose “A static page” and choose a page for your home.
Create Single Post Template
unlike for pages, posts doesn’t have the ability to have their own template if not using single-ID or single-SLUG.
we do have a plugin for that – Single Post Template
and much more here:
Some useful links:
Compilation of WordPress Hacks - http://wphacks.com/wordpress-hacks/
22 Mixed Quality WordPress Hacks – http://www.instantshift.com/2009/06/15/22-mixed-quality-wordpress-hacks/
40+ Most Wanted WordPress Tricks And Hacks – http://www.hongkiat.com/blog/40-most-wanted-wordpress-tricks-and-hacks/
10 Killer WordPress Hacks – http://www.smashingmagazine.com/2009/01/07/10-killer-wordpress-hacks/
63 Essential WordPress Hacks, Tutorials, Help Files and Cheats – http://speckyboy.com/2008/03/08/63-essential-wordpress-hacks-tutorials-help-files-and-cheats/
Popularity: 9% [?]