As we use WordPress for more than blogs, sometimes we set up categories to display things on a website we don’t necessarily want to show up in our Feedburner Feeds. I had to do this today and ran into some info online that didn’t work for me so thought I would post in case it helps anyone.
If you know the numerical IDs of the WordPress categories you’d like to exclude you’re almost there. If not, visit the Dashboard and in Posts>Categories click the Category you’d like to omit and note the cat_ID=XXX in the url (web address) field at the top of your browser (where XXX represents the numeral, it can be any number of any length). Do this for each category if you have more than one. Lets say for this exercise the IDs I want to omit are 2, 109 and 300.
Log into your Google Feedburner account, click on the Feed Title you wish to edit, and click “Edit Feed Details” at the top. In the “Original Feed” field you’ll see something like: http://annefrancis.biz/feed
My new feed url with the 3 categories omitted is now http://annefrancis.biz/feed?cat=-2,-109,-300
So add to the url — starting with “?cat=”, precede each cat id with a minus sign, and separate each with a comma. If I only wanted to omit category 2 my url would look like this: http://annefrancis.biz/feed?cat=-2
This worked for me — don’t change the navigation links, use the default:
$thePage = $_GET["paged"];
query_posts(”cat=3&paged=$thePage”);
<?php bloginfo(‘name’);?><?php bloginfo(‘url’) ?>
Get Blog Details:
http://codex.wordpress.org/WPMU_Functions/get_blog_details
WPMU Functions:
http://codex.wordpress.org/WPMU_Functions
<!–BEGIN CATEGORY POSTS QUERY–>
<?php
query_posts(‘cat=4′);
?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h3><?php the_title(); ?></h3>
<!–just want titles so this is commented out<?php the_content(); ?><?php endwhile; else: ?>–>
<?php endif; ?>
<!–END CATEGORY POSTS QUERY–>
<!–BEGIN SINGLE POST QUERY–>
<?php
query_posts(‘p=33′);
?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?><?php endwhile; else: ?>
<?php endif; ?>
<!–END SINGLE POST QUERY–>
If there isn’t an IE stylesheet already connected to the default theme, you’ll need to add a conditional link to a special stylesheet to your header. Put this as the last css call in your header:
<!–[if IE]>
<link rel=”stylesheet” type=”text/css” href=”iestyles.css” />
<![endif]–>
Create iestyles.css, in it will be:
html>body .entry ul {
list-style-type:disc;
text-indent: 0; }
MAKE SURE THERE’S NOT ALREADY AN IESTYLES.CSS FILE IN YOUR THEME FOLDER…put iestyles.css in root of your theme folder, or add it to the bottom of the existing iestyles.css file.
Set up new user in wordpress unique from admin, go thru posts in the category you’d like to export and make them all “by” this new author. Under tools>export select the new author and go.
http://penguin.firetree.net/pipermail/eventcalendar/2008-September/003289.html