Custom PHP Builder

A PHP Building Tool

The Custom PHP Builder is a handy tool for both learning basic WordPress/Genesis PHP coding as well as quickly creating and grabbing useful PHP code snippets to customize your website.

About Creating Widget Area/Hook Box Shortcodes

When you create either a Custom Widget Area or Custom Hook Box in Genesis Extender you can set them to "Shortcode" which will turn them into their own WordPress [shortcode]. With these PHP Builder options you will find all such Widget Areas/Hook Boxes listed so you can easily select them and have their appropriate shortcodes written for you, ready to copy/paste as needed.

About Forcing Layouts

By selecting a Layout in the provided drop-down list and then clicking the "Insert Forced Layout" button you will create a PHP code snippet that forces that particular Layout structure on any given page or post. This is especially useful when creating Custom Templates as it allows you to bypass the need for the Layout to be selected on a per-page basis.

About The genesis() Function

When creating Custom Templates, especially, the genesis() function is very commonly used at the end of the custom code. What this function does is call in all the necessary Genesis Framework code to build the page on your WordPress powered website. So what you can do is use your action and filter code to customize the way the page will display and then call this function in to finish the page building process.

Please Note:

When adding code to your Custom Functions you don't generally need to wrap your code in <?php tags ?>, but when adding PHP code to Custom Templates and Custom Hook Boxes you do need to make sure it's wrapped in <?php Tags ?>.