by Randa Clay | Aug 27, 2010 | Scripts & Code
No need for a plugin to put the Facebook Like button on your posts. Paste this where you want the button in your single.php or post.php depending on the theme you’re using:
by Randa Clay | Jul 24, 2010 | Content Display, Scripts & Code
Sometimes it’s preferable to have a button instead of text to allow the reader to jump to the rest of a post. Following is the code to replace the text with an image: <?php the_content('<img src= "' ....
by Randa Clay | Jul 18, 2010 | Scripts & Code
There are so many great things about WordPress 3.0 (like the awesome Menus feature for example), and one of the best is that they’ve combined WP and WPMU at long last. You have to turn on the multi-site option by adding a bit of code to the wp-config.php file to...
by Randa Clay | Apr 2, 2010 | Scripts & Code
Inserting a simple link to Twitter is one thing, but including SEO friendly, valid links using WordPress template tags to make it extra convenient for your users to add posts to social media sites requires a little more thought. Fortunately, the linked article does...
by Randa Clay | Apr 2, 2010 | Scripts & Code, Templates
Shortcodes are designed to allow you to call certain plugin or built in theme functions within the post/page editor. This code snippet allows you to use shortcodes in a template file as well.
by Randa Clay | Mar 30, 2010 | Scripts & Code, Templates
Need your single post views to be totally different depending on what category the post is in? You can do this easily by creating special single post files for each category as needed, and then replace the code in your single.php file with the following: <?php if...