Automatically Update Copyright Date – PHP

In the following simple solution, I show you how to use a little php code snippet to automatically update your WordPress Copyright Date every year (appending the new date automatically). The process is super simple, but I figured that there may be others out there looking to accomplish the same goal and thought it would be nice to post an example.

Continue reading

Warning: array_keys() [function.array-keys]:

If your encountering a warning in WordPress stating Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/yourhome/public_html/yoursite/wp-includes/widgets.php on line 1044, your not alone. This error is fairly common amongst many WordPress users just after upgrading, moving or reinstalling WordPress.

Continue reading

Warning: Cannot modify header information

Warning: Cannot modify header information – headers already sent by (output started at… If your receiving an error like this in your web browser just after trying to edit a file, the culprit is most likely that there are spaces, misc characters or  newlines either just before an opening <?php tag or right after a closing ?> tag.  In WordPress, the problem may appear from a corrupt wp-config.php file. However, the problem can occur in other files as well.

Continue reading

WordPress – Removing Post Date from Permalinks

In the following simple solution, I cover the process of removing the (year, month, day) date from WordPress day and name based permalinks (post urls). There was a time when many professional bloggers recommended using a day and name based permalink structure. However, for present day SEO, many bloggers now recommend using simple name based or category and name based permalinks.

Continue reading

Embed PDF in WordPress

Embed PDF in WordPress: In the following simple solution, I’ll show you how to easily embed PDF files into your WordPress posts. There are many times in which I have needed to embed PDF files into a page or post for clients, enabling a visitor to read the PDF document right from the page. The process of embedding PDF files into a WordPress post is fairly simple, assuming your using a WordPress version later than 2.6.

Continue reading

IO Error Uploading Images WordPress

IO Error Uploading Images in WordPress. When browsing a local drive for a picture to upload, you may encounter the: IO error. An error occurred in the upload. Please try again later. It seems there are a lot of WordPress users, including myself that have encountered this issue. In the following simple solution, I’ll show you what I did to address the problem and get my WordPress Image uploads to stick.

Continue reading

Remove meta name=”generator” content=”WordPress”

As of WordPress 2.5, and beyond, the <meta name=”generator” content=”WordPress” /> meta tag was moved from the template to the core of WordPress. This means that you can no longer simply remove the call from the template. We now need to include a function in functions.php In order to remove meta name generator” content tag. I feel it’s important to remove this tag, because it exposes the WordPress version your site is running which could lead a person to expose vulnerabilities for the particular WordPress version and further compromise your site.

Continue reading

Integrating Highslide with WordPress Nextgen Gallery

Getting Highslide Working with Nextgen Gallery for WordPress is not complicated. Highslide is even supported by NextGen Gallery. However, the support in NextGen Gallery will only get the basic functions of Highslide to work. By default, the Highslide control bar navigation and captions do not work when used in conjunction with NextGen Gallery.
Continue reading

WordPress – Set the maximum width of an uploaded image

In the following tutorial, I show you how to change the maximum size of an uploaded image in WordPress 2.5 and beyond. By default, when you upload an image in WordPress using the “full size” image option, the image is automatically resized to a maximum width of 500px. This works fine in most cases, for most people. However, if you are using a theme where your post content is utilizing a width larger than 500px, you may want to upload larger images to help maximize the space you have to work with.

Continue reading

How to Hide WordPress Categories (Pre 2.6)

Hiding WordPress Categories: In the following simple solution, I am going to show you How to keep a selection of WordPress Categories from displaying in your sidebar on your WordPress pages and posts. This is very useful if you have a lot of categories, or have changed the content of your blog, have been indexed for the content and no longer wish to use or display specific categories on your WordPress site. Upon completion of this tutorial, the permalink structure of the hidden categories are still made available to the search engines, however, the categories you have chosen to hide are no longer displayed on your blog to the visitor.

Continue reading

How to make WordPress Permalinks work in Xampp

Xampp and similar localhost webservers that can be run from a local computer do not have mod_rewrite enabled by default. Furthermore, the AllowOverride directive is usually set to none, causing Apache to ignore an .htaccess file. If this is the case, your WordPress installation might return a 404 error, stating post not found and you would only be able to access your posts via a default permalink structure. I.E. http://localhost/?p=2. In the following simple solution, I show you how to make WordPress Permalinks work in Xampp and other localhost server installations. Upon completion, you will also have the ability to use .htaccess files on your local server.

Continue reading

’ � Strange Characters in WordPress posts

After upgrading WordPress, many people may encounter strange characters in WordPress posts text. This issue typically presents after upgrading or moving WordPress. It appears to be a character set or charset encoding problem where apostrophes, hyphens, quotation marks and dashes appear or are displayed in posts and pages as strange characters like ’ �., or even as simple ? (question marks). Yes, the symptoms are obvious. WordPress posts and pages suddenly contain garbled, weird, or strange characters. Sometime just lots of ????? (question marks) rendering the WordPress database with your hard work useless and output nearly unreadable. Moreover, this problem can quickly become very frustrating. Before reverting back to an earlier version or reinstalling your database, read ahead.

Continue reading

Removing the limit of posts per page

Removing the WordPress post per page limit: By default, WordPress posts are limited based on the posts_per_page setting. Making many of your older posts incredibly hard to find for both search engines and readers. Like many readers, I hate (pagination) having to read through pages of posts in a category one page at a time. So I decided to find a way to make every post within any given category show up on a single category page eliminating the need to flip through pages. In the following tutorial, I’ll explain how this is accomplished.

Continue reading

Removing the WordPress sidebar bullets

Remove bullets from the WordPress sidebar: The following tutorial is for those who use the default Kubrick WordPress theme or a derivative of it and want to remove the sidebar bullets to make for a cleaner looking blog. The bullets normally don’t appear if your using the Internet Explorer browser and although some people prefer the bulleted sidebar look, I tend to remove it on all sites I have helped develop.

Continue reading

WordPress Duplicate Sidebar Widgets

The following Duplicate Sidebar Widget Plugin for WordPress allows a WordPress user to duplicate or copy sidebar widgets and use them on multiple sidebars or use the widgets more than once in the same sidebar. Duplicate Sidebar Widgets is based solely on the original Jaw Duplicate Widgets plugin. I have simply cleaned up a couple of errors, corrected the paths and made it compatible with WordPress 2.3 and beyond.

Continue reading

New Post does not show up for some people

New WordPress Post is not showing up or displaying for some people: I get this question quite frequently and in almost every case, the Post is flagged as Private. The reason most bloggers think it has been posted and is viewable to the public is because private posts are viewable to those that are logged in with administration access rights and typically after a blogger writes and publishes a post, they go View site without logging out. So, the post shows up for them as the browse the site.

Continue reading

How to easily add AdSense to your WordPress posts

Manually adding AdSense to WordPress posts is a relatively simple task that can be accomplished within just a couple of minutes. In this tutorial, we cover the process of adding the code to the singlepost.php. This will allow us to display advertisements on every post only when the post is individually viewed. There are many places within the singlepost.php to add the code, for the sake of simplicity, we are going to cover the hotspot.
Continue reading