Tricks & Fixes

Tricks & Fixes


Feedburner Feed – Omit Specific WordPress Categories

3.07.2012 | 0 Comments

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


WordPress: Pagination on Query Posts

10.17.2009 | 0 Comments

This worked for me — don’t change the navigation links, use the default:

$thePage = $_GET["paged"];
query_posts(”cat=3&paged=$thePage”);


WPMU Blog Name & URL Tags

7.13.2009 | 0 Comments

<?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


More Traffic on Your WordPress Blog

6.29.2009 | 0 Comments

From the Dude…

I am a big fan of all of this guy’s stuff.

In the video below he describes how he analyzes and tweaks his wordpress blog to get more traffic:

http://www.fourhourworkweek.com/blog/2009/06/29/how-to-build-a-high-traffic-blog-without-killing-yourself/

-d

And from Tim Ferriss

The above video is one of my favorite presentations I’ve given in 2009, an opening keynote at the last San Francisco WordCamp, titled “How to Blog without Killing Yourself”. More than 700 people from 32 countries were in attendance, which made for a wonderful experience.

The original title was “Scalable Blogging Behaviors: How to Grow from 1 to 1,000,000 Readers” and the content did not change.

In the above presentation, including detailed screenshots, I cover…

- Why I blog
- How I blog and select best practices
- Frequency and tools — best times and days to post
- Blogging myths and how to harness data for better results
- Testing design and surprising findings that can be copied
- How I address comments and community building
- How I write and research for good social media response
- 20 minutes of audience Q&A on Twitter, branding, outsourcing, and much more

I hope you enjoy it as much as I enjoyed giving it.


Reverse the Order of Post Listings

4.02.2009 | 0 Comments

This is handy for future posts – so they list from the next event being first to later events being after that.

In your index.php file, or whatever file generates the page you want to reverse the order of, look for this bit of code:

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

Right before that line, add this code:

<?php query_posts($query_string . “&order=ASC”) ?>

Query a Category of Posts into a Page

4.01.2009 | 0 Comments

<!–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–>


Query One Particular Post into a Page

3.31.2009 | 0 Comments

<!–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–>


Putting the bullets back into Default Theme for IE7

3.26.2009 | 0 Comments

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.


Migrating WordPress Categories To Another Domain

3.23.2009 | 0 Comments

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.


Event Calendar 3 Patch

3.23.2009 | 0 Comments

http://penguin.firetree.net/pipermail/eventcalendar/2008-September/003289.html


Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin