WordPress Security Hacks

Hi guys this is my first post on wpcult the great site Austin built.  Hope you guys find it usefull. If you run a blog using the wordpress software then your blog is a target to…

How to: Create a fbshare.me shortcode

How to: Create a fbshare.me shortcode

Social networks are everywhere. I am sure you're on facebook. Well why not at a facebook share script to your site?

Turn your RSS feed into a shortcode

Last week I wrote how to “Use WordPress to print a RSS feed for Eventbrite attendees“. It was pretty popular, but then I found myself in a place that was more annoying. Trying to…

Use WordPress to print a RSS feed for Eventbrite attendees

Today I was working on the WordCamp.LA site. I was trying to show the “attendee list” on the attendees page with out having to update the page every day. Since I am using EventBrite to…

Calling custom fields for next/previous posts

Custom fields are definitely very useful and are used on many WordPress installs. Today I’m going to show you how to easily get custom fields values outside the loop.

Remove spaces when echoing the_title

Ever wanted to print or echo the WordPress title attribute without spaces?

How to: show/hide a widget in WordPress with jQuery

How to: show/hide a widget in WordPress with jQuery

In a previous post I talked about how to show/hide a single div html code with a search inside. Today I'd like to show you how I implemented jQuery into my new theme.

Display the_excerpt only if there is text

Display the_excerpt only if there is text

Have you ever wanted to display the excerpt only if you write one? A simple couple lines of code can display the_excerpt any where you like.

Add a shortcode

Add a shortcode

This is a simple one. /** * Your Blog title * */ function my_blog_title() { $blogname = get_bloginfo('name'); return '<span class="blog-title">' . $blogname . '</span>'; } add_shortcode('blog-title', 'my_blog_title'); Just add this to your functions.php file…

Adding a external file after the first post

Adding a external file after the first post

How might you display a Google ad after the first post or anything you like? It is very simple. You just need to add the variable $loopcounter in the Loop. If the $loopcounter is…

A simple way to query posts

A simple way to query posts

Here is a simple way to call query_posts with an array of options. For all options you my use visit: WordPress Codex. <?php $my_query = array('showposts' => 4, 'post__not_in' => $do_not_duplicate); ?> …

Adding a favicon to your site

Adding a favicon to your site

Looking to add a favicon to you site? Inside your WordPress theme’s functions file (functions.php) add the following to inside your PHP code. /** * FAVICON * @WPCult.com */ function my_favicon() { ?> <link rel="shortcut icon" href="<?php…

Add additional meta boxes to Hybrid Theme

Add additional meta boxes to Hybrid Theme

At the time of writing this post I have Theme Hybrid as my parent theme, and am using a custom version of Hybrid News that Justin Tadlock offers to the public. Well I want to…

Sick of images being to large for the content area?

Sick of images being to large for the content area?

Have you ever uploaded an image that might have been a tad bigger than the width of your content area? I know I have! So here is a little CSS fix to handle these…

How to: Display RSS feeds from anywhere

How to: Display RSS feeds from anywhere

Here is a simple way to display any RSS feed in your WordPress blog. <?php include_once(ABSPATH . WPINC . '/rss.php'); $rss = fetch_rss('http://feeds2.feedburner.com/WPCult'); $items = array_slice($rss->items, 0, 4); if (empty($items)) echo '<li>No items</li>'; else foreach ( $items as $item )…