Troubleshooting

How to Fix Missing Post Dates in Your WordPress Theme

The problem:
When you have multiple posts published on the same day, the post date only shows up for the first one when you view the posts on your site.

The fix:

  1. Go to “Appearance > Editor” and repeat the following steps for each of your theme files
  2. Look for instances of this code:
    <?php the_date(); ?>
  3. Replace that code with this code:
    <?php echo get_the_date(); ?>
  4. Click “Update File”

The explanation:
Most WordPress template tag functions that start with “the_” will merely output the values returned by their equivalent “get_the_” functions. However, “the_date()” is an exception to this standard because it adds functionality that’s not present in “get_the_date()”, namely, not outputting the same date more than once per page, which can be a feature or an annoyance depending on your desired functionality.

How to Find and Fix 404 Errors

If you’ve changed post slugs, taxonomy slugs, or permalink structures, you likely created 404 pages (page-not-found URLs) along the way.

These 404 pages certainly aren’t helpful for visitors who stumble across them and can increase your bounce rate. It can be a particular problem if search engines, pingbacks, and/or internal and external links are sending traffic to the old URLs.

Here’s how to resolve the issue:

Continue reading

What to Do If Plugin Deactivation Breaks Your Blog

Say you just disabled a plugin, and now your WordPress blog’s front-end says “Fatal error: Call to undefined function.” Part of your site may even be missing.

The problem is that your theme is calling on the plugin you deactivated. However, since that plugin is gone, the site displays an error and then stops rendering the rest of the page.

Here’s what to do:

Continue reading

Make WordPress and Firefox Adblock Play Nice

This potential problem is applicable to those using the following, which is probably quite a few people:

As part of its functionality, Adblock inserts a Block tab next to Flash objects, etc. to make blocking that object as easy as a couple clicks.

The problem is, Adblock will insert the HTML code for this tab into the visual editor for a WordPress post that includes Flash.

And who wants code like this in their posts?

Continue reading

WordPress Permalinks Just Won’t Enable? Try This.

Have you tried to enable “Pretty Permalinks” but the change doesn’t show up on your blog?

I have, and I’ve successfully used this tactic buried in the WordPress Codex’s Using Permalinks article under the “Fixing .htaccess Generation Issues” section.

This only applies if your web host is using Apache (if you aren’t sure, chances are it is, but you might want to check with your host first).

Continue reading

The “Undefined wp_die()” WordPress MU Installation Error

Once when installing WordPress MU, after submitting the form in the setup wizard, I got the following error:

Fatal error: Call to undefined function: wp_die()

I did extensive research a la Google, and lots of other people seemed to have the problem [1, 2, 3], but I still couldn’t find the answer.

Continue reading