•  
Recent Posts

WordCult Theme release 0.3

By Austin On April 16, 2009 4 Comments

I’ve had some time the last few days while my XPS computer has been having difficulties and the Dell replacement parts didn’t fix, what I know now to be a faulty LCD screen.

So I’ve made a few updates and changes to my WordCult theme. The new version is: 0.3.

Download it:

WordCult Theme 0.3.1.1 - () Version-0.3.1.1 _(350)

 

Update for 0.3:

A lot of changes to the core files, many files have been changed, removed and moved. So please if upgrading, backup your database. The core folder has been changed from wordcult2 to

Click here to continue reading


Add a shortcode

By Austin On April 15, 2009 No Comments

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 and then add [blog-title] in any post or page and it will return your Blog Title. :)

Click here to continue reading


Adding a external file after the first post

By Austin On April 9, 2009 No Comments

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 less than or equal to 1, then include your option. Check out the code:

<?php if (have_posts()) : while (have_posts()) : the_post(); $loopcounter++; ?> // your loop <?php if ($loopcounter <= 1) { include (STYLESHEETPATH . '/you-file.php'); } ?> <?php endwhile; ?> <?php else : ?> <?php endif; ?>

Pretty simple huh. Well in the $loopcounter line, you may change the include to point to any file or maybe

Click here to continue reading


A simple way to query posts

By Austin On April 6, 2009 No Comments

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); ?> <?php query_posts($my_query); ?> Click here to continue reading


Adding a favicon to your site

By Austin On April 2, 2009 6 Comments

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 echo bloginfo("stylesheet_directory") ?>'/images/favicon.ico" /> <?php } add_action('wp_head', 'my_favicon');

That’s it, just be sure to upload an icon image or a .gif/.png. Be sure to correct the target location id the file is located somewhere else.

Click here to continue reading


The launch of WordPress 2.8

By Austin On April 1, 2009 3 Comments

Wow, have you heard? WordPress has announced that the newest version, 2.8 which was thought to be held off till September has actually been a secret project. They have announced that WP 2.8 has already been worked on and will be available today!

Just in case..

Did you realize this was a April fools joke? Hopefully you weren’t to fooled, mine wasn’t as cruel as a few other out there in the web. :)

Click here to continue reading


WPLover: On Launching a WordPress theme

By Austin On March 31, 2009 No Comments

I just came across this article over at WPLover. Was very good, especially since I just released my first WordPress theme. Seems like he’s got it down to a science, or at least a simple checklist.

So you’ve completed your next great WordPress theme. You’ve tested them day and night, squashing bugs and CSS inconsistencies along the way. Your fingers are trembling, waiting for the time to release that theme to the wild.

Click here to continue reading


Maintenance release for Hybrid 0.5

By Austin On March 31, 2009 No Comments


Using the swekey on your blog

By Austin On March 30, 2009 2 Comments

Signing up with the swekey pluged in If you’ve downloaded the Swekey plugin and plan on using it for users to login here is what you might see.

The first image here shows what a user might see if and when you’ve got “allow registers” and said user has a Swekey plugged into there computer while registering to your site. I registered on a test blog I use, once I typed in my user name and email this

Click here to continue reading


April’s new meetup location for LAWPUG

By Austin On March 29, 2009 No Comments

Anyone in the Los Angeles area? Well the first Sunday of the month is the LAWPUG, and since the weather is nice in LA, the meet is going to be held at the farmers marking on 3rd. For more info head over to LAWPUG.org.

Click here to continue reading


Swekey: A safe web enabler usb?

By Austin On March 28, 2009 1 Comment

I received a Swekey in the mail this week. What’s a Swekey you ask?

Like regular keys protect your car and your home against thieves and burglars, the swekey protects your internet accounts against any kind of piracy

Any swekey protected web site will never accept to log you in if your swekey is not plugged into your computer… Read more

So I am going to start off by stating that there is a WordPress plugin to enable this handy little USB

Click here to continue reading


Add additional meta boxes to Hybrid Theme

By Austin On March 27, 2009 7 Comments

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 tell you how you can add additional custom meta boxes to your child theme’s running the Hybrid Theme.

In your child function.php file just add the following to create a new post meta box:

/** * Add additional post meta boxes * * by WPCult */ function wpcult_post_meta_boxes($meta_boxes) { $meta_boxes['image'] = array( 'name' => 'image', 'default' => '', 'title' => __('Image:'), 'type' => 'text', 'show_description' => false, 'description' => __('PleaseClick here to continue reading


Sick of images being to large for the content area?

By Austin On March 26, 2009 6 Comments

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 situations.

Resize those large images using CSS

Resize those large images using CSS

.post img { max-width: 600px; height: auto; }

That’s it, really simple huh. Just make sure that you change the .post to the correct body class(which starts with a “.“) or body ID(which starts with a “#“).

Would you like a quick explanation?
The CSS is just

Click here to continue reading


And the winners who receive a free book are.

By Austin On March 26, 2009 3 Comments

And the Winner is..

See, I really did pull the winner out of a hat, lol. Well In my post “Get a copy of Blog Blazers” I said that two people would win copies. Well I’ve got a third now, so I know only a few people commented so, the chances are far greater that you could win! On with the show.

The three commentors that have won a copy of  Blog Blazers are:

  1. aminhers
  2. Ralph
Click here to continue reading


How to: Display RSS feeds from anywhere

By Austin On March 23, 2009 5 Comments

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 ) : ?> <a style="font-size: 14px;" href='<?php echo $item['link']; ?>' title='<?php echo $item['title']; ?>'><?php echo $item['title']; ?></a><br /> <p style="font-size: 10px; color: #aaa;"><?php echo date('F, j Y',strtotime($item['pubdate'])); ?></p> <p><?php echo substr($item['summary'],0,strpos($item['summary'], "This is aClick here to continue reading