Archive for the ‘PreBuilt Systems’ Category

Alinks extra modules

Monday, March 17th, 2008

If you use Alinks on your wordpress installation, here are a couple more modules which could help you monitize your website or at the very least make it more user friendly.

http://headzoo.com/alinks-modules

Sphere: Related Content

IT ticketing software

Thursday, March 13th, 2008

A ruby on Rails IT trouble ticketing system.

http://www.simpleticket.net/

Abandoned Plugins Support

Monday, March 10th, 2008

I have started a new project, called Abandoned Plugins.  I will be supporting plugins that I have found no longer have support, and taking new unsupported plugins under my wing.

The plugins that I am supporting from the site currently are:

D13 Gallery Plugin

RC_CustomFields_GUI Plugin

If you have comments, suggestions, or a plugin that needs updating, please leave a comment on http://abandonedplugins.com

Sphere: Related Content

Suppressing Wordpress Database errors

Thursday, February 14th, 2008

This might only apply to 2.2.2 but hopefully not.

at the very first line of your very first piece of code in your template do this:

$wpdb->hide_errors();

If you want to, you can do it in your header file with:

global $wpdb;

$wpdb->hide_errors();

Oh god, Im so glad it’s finally over…

Sphere: Related Content

How to customize your WordPress category pages, an easier way

Thursday, September 27th, 2007

If you have the desire to customize your WordPress blog, and have attempted it, you surely know that it is a pain sometimes.

I was trying to cutomize my category pages to show the most recent post for that category, and only posts for that category.

  • Create a file called category.php in your theme’s directory.
    • This will default WordPress to use this page for categories from now on.
  • For showing only the most recent post with this category: Use this code:

<?php
get_header();
//the following gets an array of the categories for this post

$get_cat = get_the_category();

//the following will get the first category for your post and create a WordPress query that uses “The Loop” to show the most

// recent post from that category

$q = ‘cat=’.$get_cat[0]->cat_ID.’&showposts=1′;
$my_query = new WP_Query($q);
//the rest is just like everywhere else that you show posts on your blog

if($my_query->have_posts()){
while ($my_query->have_posts()) : $my_query->the_post();
?>
<h2>
<?php the_title(); ?>
</h2>
<?php
the_content(’Read the rest of this entry »’); ?>
<?php
endwhile;
}else{
?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php
}

get_footer();
?>

  • For showing the only post with this category or showing the titles only if there are multiple posts: Use this code:

<?php
get_header();
$get_cat = get_the_category();
$q = ‘cat=’.$get_cat[0]->cat_ID.’&showposts=1′;
$my_query = new WP_Query($q);
if($my_query->have_posts()){
while ($my_query->have_posts()) : $my_query->the_post();
?>
<h2>
<?php the_title(); ?>
</h2>
<?php
//this is all I added to the previous one, it checks to see how many posts there are
if(count($posts) > 1){
the_content(’Read the rest of this entry »’);
}
?>

<?php
endwhile;
}else{
?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php
}

get_footer();
?>

Now you can add the other normal wordpress template tags in these, just place them and try it out.

Note: The best Codex page I found for templating is here: The WordPress Loop

Sphere: Related Content

67159 pages viewed, 22 today
23119 visits, 16 today
FireStats icon Powered by FireStats