When I last looked at customizing feeds in WordPress, it was all to do with being able to offer a summary and full text feed simultaneously—making use of WordPress' flexible feed URL syntax and a .htaccess file. In this post I look at modifying the actual contents of the feed using a functions.php file (which may already exist as part of your current theme).
Continue reading 'Customizing WordPress feed content'
Tag archive for 'wordpress'
The first version of my site preference panel for WordPress needed lots of JavaScript for the toggle (Proto.aculo.us), more JavaScript to switch styles, and still more JavaScript to change text size. Version 2 still uses JavaScript for the toggle effect—but no additional load—since jQuery is already utilised by K2. The rest is accomplished using server-side PHP, and the revised 3-column panel layout makes use of more recent CSS know-how. I've tried to modularize the preferences panel as much as possible, but some simple template editing is still required (at 4 points). It is optimised for K2 (tested using RC3 and RC4) and although I haven't tested it with other themes (that's your job!) I don't see why it couldn't be used (*Some tweaking may be required. Batteries not included.)
Continue reading 'bioneural.net site preference panel revisited'
Is WordPress altering your punctuation behind your back e.g. converting typewriter quotes (") to smart quotes (“ & ”)? It's down to the on-by-default wptexturize function. You can disable this by adding the following to your theme's functions.php file: remove_filter('the_content', 'wptexturize'); (for posts) and remove_filter('comment_text', 'wptexturize'); (for comments). Or, use a plugin.
Having cleaned up your head, you might also like to de-clutter you WordPress options table. Sure, it won't alter the look or performance of your site—but it's what's on the inside that counts right? Unfortunately deactivating a plugin or deleting it from wp-content/plugins will most often not clear out the data it saved to wp-options.
Continue reading 'Spring clean your WordPress options'








