Mogul Custom Functions

This plugin is intended for use by theme developers to hasten coding and to save the world from tyranny. But mostly the theme dev bit.

Author:Bren Murrell @ Mogul (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:3.3.0
Plugin version:1.1.5
Added to WordPress repository:10-03-2011
Last updated:19-05-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.mogul.co.nz
Total downloads:1 375
Active installs:40+
plugin download
Click to start download
  • 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