Categories: How To // Wordpress

Add New User Role

Roles! Roles? Yes, roles! But I’m not talking about the movie roles that I have been in, none actually. I’m talking about WordPress roles.

In WordPress you can create new roles with different capabilities and add users to it. Neat right? Hard to do? No!

Read More “Add New User Role”

Categories: How To // Wordpress

On Activation, Deactivation or Uninstall Functions

WordPress has a cool little three functions that can help plugin developers do something when the plugin is activated, deactivated or uninstalled.

All three are equally important. If you use activation function to set up your plugin, you should also use at least one of the other two, deactivation or uninstall function. Something that most developers do not do. Result you might ask? A mess in options table. To the gallows with them. ;)

Read More “On Activation, Deactivation or Uninstall Functions”

Categories: How To // Wordpress

Get WordPress Page Excerpt

Yesterday I wanted to show page excerpt using get_posts on front page of a theme and of course came to the problem because WordPress does not create page excerpts by default.

So now what? Well the only way I could get page excerpt from a page is by using the excerpt field (not shown on page edit by default) or by automatically clean the content of the page, limit the number of words and output it.

Read More “Get WordPress Page Excerpt”

Categories: Plugin // Wordpress

LTW Content Shortcodes Plugin Released

LTW Content Shortcodes is a plugin that will enable you to include tabs, buttons, columns and toggle elements into your content easily and quickly.

Currently it support four shortcodes: tabs, buttons, columns and toggle.

The reason I made this plugin is because I needed a simple and lightweight plugin that doesn’t have lots of options that are never used. Plus, most of the plugins I’ve tested have crappy code and are just bad. :)

Read More “LTW Content Shortcodes Plugin Released”