Snippets


Adding Visual editor to WordPress comments box (part 2)

There were few issues with implementation of Visual editor to WordPress comments box with the method explained in part 1. Some of the issues are: Difficulty in including tinyMCE language files The Visual editor does not work after clicking on ‘reply’. To overcome the above issues, we can implement Visual editor to comments box by

Read more→

Adding visual editor to WordPress comments box

Read part 2 for adding visual editor to WordPress comments box using new editor API available in version  3.3 Writing HTML tags in comments is not easy for everyone. You can add visual editor/TinyMCE in comments box so that your site visitors can easily format text in bold, italic, etc. You can add visual editor

Read more→

Relative dates for posts and comments in WordPress

Calendar dates are nice but relative dates (i.e 1 day ago) can be more attractive. You may have noticed relative dates in Twitter and Facebook status updates. You can also display relative dates for posts and comments without using a WordPress plugin. In your Theme’s functions.php file, add the following snippet: The above snippet can

Read more→