John Russell Blog

Tag: Theme

  • Using a PHP Framework or Library in WordPress Plugins and Themes

    Using a PHP Framework or Library in WordPress Plugins and Themes

    Anyone who has spent a fair amount of time creating WordPress Plugins or Themes has likely also come across the need to package a PHP framework or library inside a plugin or theme. On the surface this is a fairly routine thing to do – simply copy the file into your plugin or theme, or […]

  • WordPress Check if a Menu is Empty

    While working with WordPress there are times that it can be very useful to check if a menu is empty before outputting markup. One example is for displaying dynamic, custom, menus in a sidebar where you may not want to output any markup if the menu is empty. This is actually the default functionality of […]