Wordpress Tips

Delete bulk comments

If you are unfortunate enough to get spammed, you may be pounded by thousands of spam comments. Please consult your own IT professional for advice, but I have found this tip works perfectly. To remove unapproved comments manually could take hours (20 at a time from within WordPress Dashboard/Comments). To remove thousands of comments in seconds, I logged in to my hosting account (cpanel), navigated to “phpMyAdmin”, selected the database from list on left (corresponds to domain username), then chose the “SQL” tab, and added the following:

DELETE FROM wp_comments WHERE comment_approved = '0'

Then hit “Go” to run the SQL query, and spam gone.

Posted by Redback Graphics in Technical, Wordpress Tips

Updating sidebars

If you have a Redback Graphics installed CMS website.
Your sidebars and footers may already have preinstalled widgets that contain information, navigation and/or images. A Widget allows you to add, arrange, and remove tools, plugins or content from the sidebars and/or footers of your website. Widgets make it easy to customize the content of your website sidebars and footers. Typically used for Categories and Posts from a Blog, they can also be used for traditional website content including images, advertisements and News items.

Not all  websites have both sidebars and footer widget areas, you can view your available widget areas via your Dashboard. Login to your Dashboard, then under “Dashboard”, click once on “Appearance”, then once on “Widgets”. See also Adding widgets.

On the far right side of your screen you will see all of your available Widget Areas. Expand any Widget Area and view installed Widgets. Adding a Text Widget is one of the most useful Widgets to install. You can edit its Title, and edit or insert any text or html into the content part of that widget. Click “Save”, then view your website to see your new or edited Widget in action.

If you want in insert images into a Text Widget area, see Inserting Images into Sidebars to get the html for any image you want to insert.

Tip 1
It’s always handy to have another browser window open to view the “public” side of your website to see the changes without having to log in and out of your Dashboard to see the public website.

Tip 2
Always backup your website before doing any updates until you are very familiar with updating pages and images etc.
See backing up your website
..

Posted by Redback Graphics in Wordpress Tips

Ordering pages in navigation

If you are using a WordPress Custom Menu (Dashboard/Appearance/Menus), then you can drag and drop menu items to reorder in your main navigation.

If you are not using custom menus you can order pages and sub pages by allocating a page order number. Simply “Quick Edit” each page (Dashboard/Pages) and allocate a number in the “Order” box.

 

See also Adding/editing navigation items.

Posted by Redback Graphics in Wordpress Tips

Wordpess error

If you get an error:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s):

In Dashboard/Settings/Media, make sure the path is set to default wp-content/uploads

Anything else might give you an error.

This error can be triggered when uploading a new image.

Posted by Redback Graphics in Technical, Wordpress Tips

Catchable fatal error

“Catchable fatal error: Object of class WP_Error could not be converted to string in” etc

If you are using the Lightbox gallery plugin, ensure that gallery images are linked to media file, not attachment page (in the specific gallery settings).

Posted by Redback Graphics in Technical, Wordpress Tips