Change TinyMCE Editor Class

Change TinyMCE Editor Class

This hack will change TinyMCE’s default class, useful for styling the post editor to look like the front end of your site. This function goes into your theme’s functions.php file.

Continue reading

Best ‘Related Posts’ Plugins for WordPress

Best 'Related Posts' Plugins for WordPress

Learn how to implement a ‘Related Posts’ section on your blog posts, which helps in SEO and enhances the stickiness of your site. We examine several plugins to achieve this.

Continue reading

Provide a Shortcut to Your Settings Page with Plugin Action Links

Provide a Shortcut to Your Settings Page with Plugin Action Links

When you use this code in your plugin, it will add a ‘Settings’ link to your plugin’s listing under ‘Plugins’. The link will take you to the plugin’s options page.

The benefit of the plugin action link is that users see it immediately after they activate the plugin, thus adding to the overall experience.

Continue reading

Publish Posts to RSS At a Later Time

Publish Posts to RSS At a Later Time

This hack delays posting to the RSS feeds for 10 minutes (you can customise it). This can be useful as it gives you some leeway to re-read the live post and make any minor changes before it goes to the RSS feeds. Using this hack you can also keep content exclusive to your site for a day or a week before pushing it out to your RSS readers.

Continue reading

Set Post Revisions to Avoid DB Bloat

Set Post Revisions to Avoid DB Bloat

Post Revisions can significantly bloat the size of your database. Here’s how to change the default unlimited number of revisions to 5, by using this hack which needs to be placed into your theme’s functions.php file.

Continue reading

Add an Excerpt Box for Pages

Add an Excerpt Box for Pages

This hack will add the same “excerpt” box which you are familiar with on the “Add/Edit Post” admin area and duplicate that functionality on the “Add/Edit Page” section.

Now you have the usual excerpt box in the page editor, and you may use the_excerpt() when listing more than one page

Continue reading

Enable Hidden Admin Feature displaying ALL Site Settings

Enable Hidden Admin Feature displaying ALL Site Settings

This hack will add an additional option to your settings menu with a link to “all settings” which will show you a complete list of all the settings you have within your database related to your WordPress site. It will only make this link visible to an admin user and hide it for all other users.

Continue reading

The Ultimate Guide to WordPress Taxonomies

The Ultimate Guide to WordPress Taxonomies

In this post we examine the difference between WordPress categories, tags and custom taxonomies. We also go through the step-by-step creation of a custom taxonomy.

Continue reading

How to Add Buttons and CSS Classes to TinyMCE

How to Add Buttons and CSS Classes to TinyMCE

Update: Here’s a better way of adding custom styles to the Styles dropdown in TinyMCE. When creating websites for clients, especially those who are not so familiar with website editing or the internet in general, it is always useful to customise the WordPress Admin in order to make it simpler and more intuitive. Once customisation is that of adding functionality to the TinyMCE visual editor. For example you might want to let clients easily select a paragraph of text and give it a particular style, such as increase its padding and make a background for it. As a developer you…

Continue reading