Tag Archives: WordPress

Embeds – WordPress 3.4

I noticed that the new WordPress update automatically creates embedded content for several sites.  It actually started in 2.9, but Twitter was added with this version.  All you have to do is include the link by itself on a line.

Bill Coin

It will make it much easier to steal Jay Lee’s content.  (Actually, i’m sure it links back to the original, which is all he wishes for in a non-commercial setting.)

Also, you can include hyperbolic tweets and make fun of them while nicely formatted:

Excluding Category from Main Page in WordPress

I’ve added the following custom code that I found on Zeo’s blog.  It gets added to the functions.php section of the theme being used (Theme Functions) for the blog.  Which obviously will require it to be updated each time I change the appearance of the blog.  But it’s simple.  I found a relatively complicated plugin which didn’t work and still required manual editing of the file.  If you’re aware of a functional plugin to do the same thing (preferably with a list of check boxes) I’d appreciate the pointer.

My goal here is to be able to maintain all my blog entries in one place, but allow me to write some technical entries that would otherwise bore my lay person reader (all three of them).

I also want to find a way to make a custom page to show all of the tech entries.  Off to search for that.


function exclude_category($query) {
  if ( $query->is_home || $query->is_feed ) {
    $query->set('cat', '-54');
  }
return $query;
}
add_filter('pre_get_posts', 'exclude_category');

Here Goes Nothing

Which is to say, here goes quite a bit.

I’m about to try to update my WordPress 2.5 to 2.7. I just did that over on colonelpod.com with the click of a button, because I had that boy on SimpleScripts. And that’s nice.  But I haven’t converted this one, yet.  The one thing SimpleScripts doesn’t do is convert an existing installation.  So,…  I’m going to have to fiddle around with lots of things, and let’s hope not too much breaks.  Backing up things now.

What I should do:

  • manually upgrade to 2.7 (many steps in itself)
  • backup the database
  • move the installation out of the way
  • reinstall a 2.7 with simple scripts
  • restore the database
  • copy in the local files that have been added from the old copy

The new backend of WordPress is worth the pain I’m about to suffer.