- 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