Include file from theme directory
<?php include (TEMPLATEPATH . '/foo.php'); ?>
Added to WordPress by Søren Hugger Møller
Exclude Pages
<ul>
<?php wp_list_pages('exclude=17,38' ); ?>//here insert the ID of the Page(s). More than one: 17, 23
</ul>
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 WordPress by David Hellmann
WordPress CSS Header
/*
Theme Name:
Theme URI:
Description:
Version:
Author:
Author URI:
Tags:
*/
Added to WordPress by Erik Bernskiold
Simple Wordpress Loop
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
the_content();
endwhile;
endif;
?>
Added to WordPress by Thilo Thamm
CSS Link
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
Added to WordPress by Jesse Vlasveld