This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Mogul Custom Functions


  • Sick of reusing code over and over again in your WordPress sites?
  • Bored of searching for methods to quickly build your WordPress themes?
  • Wish there was a better way?

Well now there is!

We’d like to introduce you to Mogul Custom Functions. Built with WordPress theme devs in mind, but simple enough for anyone to use!

Never before has a set of functions been made available to the WordPress theme dev community that rivals Mogul Custom Functions (now with a real donation link for Beer money!)

Okay all silliness aside, this plugin is a collection of handy functions that we’ve built and use on almost all of our WordPress sites. They are intended for use by WordPress theme developers and provide quick methods of displaying post/page info in your WP themes. We’ve published them under the GPL to allow others to use them and to allow you to give us feedback on how awesome they are.

If you find this functionset even remotely useful, please follow the donate links so we can afford beer!

This includes

  • mog_get_outside_id() – to quickly find the ID number for the current page (solves internal loop issues)
  • mog_quik_title() – provides a quick way to return a link with the permalink for a post/page and it’s title
  • mog_in_hierarchy() – checks to see if a page is in a given hierarchy to enable inclusion of content for a given page anscestor/descendants tree
  • mog_simple_sidebar() – outputs a list of pages using wp_list_pages(). Traverses to top level parent and outputs a list of it’s children. (for sidebars)
  • a widget for mog_simple_sidebar() output


  1. Unzip all files to the /wp-content/plugins/mogul-functions directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place any of the functions in your templates in accordance with usage pages.


Where can I find out more information?

The plugin is documented here:

What’s your fascination with beer?

While you eat your breakfast of bacon and eggs, a sober developer waits.

After caffeine, beer is the most important substance in the life cycle of a PHP developer.

While you drive your fancy super economical hybrid vehicle to work for an environmentally friendly green company, a sober developer waits.

Please give generously.

Contributors & Developers

“Mogul Custom Functions” is open source software. The following people have contributed to this plugin.




  • Added to mog_long_excerpt() to strip out shortcode tags


  • Meta update only – no significant change to functions.


  • added backwards compatability for spelling error in hierarchy function


  • Simple Sidebar function gets wrapped into a WordPress widget.


  • Released into the wild