• WordPress Menu with logo
    WordPress Snippets

    Hide a WordPress Admin Menu Based on User Role

    Sometimes there may be areas of the WordPress admin area that you do not want your users to have access to. For example, you may want editors to be able to edit the content of pages but not be able to add posts. There may be a custom post type that you have added that you do not want some users to have access to. It is fairly simple to add a snippet of code to your theme’s functions.php file that will check a user’s role or capabilities and remove menu items accordingly. Remove Admin Menu based on User Role. Once you have the above information you can create an…

  • How to add gallery description
    WordPress Snippets

    How to Add a Gallery Description in FooGallery

    FooGallery is a very easy to use and feature rich gallery plugin for WordPress. It is especially useful if you want to group your galleries into albums, as this comes as standard with FooGallery, whereas it is a premium feature for many other gallery plugins. Being a user of NextGen Gallery in the past, and finding it overly complicated to use and customise, it was quite refreshing to find that FooGallery is very straight forward to use. As the documentation also claims it to be developer friendly and very extendable with over 80 hooks and actions, it would be interesting to find out how true this claim is. As I…