Coda Clips

Include file from theme directory

<?php include (TEMPLATEPATH . '/foo.php'); ?>

Added to by Søren Hugger Møller

Install Clip


Exclude Pages

<ul>
  <?php wp_list_pages('exclude=17,38' ); ?>//here insert the ID of the Page(s). More than one: 17, 23
</ul>

Added to by Michael

Install Clip


Exclude Category from RSS (themes/name/functions.php)

function fb_cat_exclude($query) {
   if ($query->is_feed) {
       $query->set('cat','-49'); //here insert the ID of the Category. More than one: -49, -5,-12
   }
   return $query;
}
add_filter('pre_get_posts','fb_cat_exclude');

Added to by David Hellmann

Install Clip


WordPress CSS Header

/*  
Theme Name: 
Theme URI: 
Description: 
Version: 
Author: 
Author URI: 
Tags: 
*/

Added to by Erik Bernskiold

Install Clip


Simple Wordpress Loop

<?php
if (have_posts()) :
	while (have_posts()) :
		the_post();
		the_content();
	endwhile;
endif;
?>

Added to by Thilo Thamm

Install Clip


CSS Link

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

Added to by Jesse Vlasveld

Install Clip


Current post ID

<?php the_ID(); ?>

Added to by Andy Lobban

Install Clip


Single post title

<?php single_post_title(); ?> 

Added to by Andy Lobban

Install Clip


Sponsored Links: