This walker class will generate a clean unordered list. It removes the numerous classes added to each list item by the default WordPress but will keep any custom classes that have been added directly via the menus admin.
This walker class will generate a clean unordered list. It removes the numerous classes added to each list item by the default WordPress but will keep any custom classes that have been added directly via the menus admin.
This is a step by step tutorial on how I was able to get WP-CLI up and running on Mavericks with AMPPS. The biggest issue that you will typically face when installing WP-CLI along side a web host software stack (MAMP, XAMPP, AMPPS) on a Mac is that WP-CLI will want to use the PHP […]
Recently, I needed to check for the existence of several related shortcodes within WordPress. Rather than writing a large if-or statement I came up with this small function that takes in an array of strings and a boolean to determine whether I needed to check for the existence of all the supplied shortcodes or just […]
A common setting that is frequently overlooked when deploying a web site is the primary admin e-mail address. This setting is located on the Settings -> General area of the WordPress admin. This setting is not tied to any specific user account so you can use any e-mail address you’d like.
I wrote this small batch file to simplify the initial WordPress core files download. Basically this batch file does the following: Uses wget to download the latest version of WordPress. (http://wordpress.org/latest.tar.gz) Unzips the .tar.gz and .tar to a /wordpress subdirectory using 7zip Uses ROBOCOPY to move those resulting files up to the current directory and […]
As of WordPress 3.6 you may now modify the passed attributes for any shortcode (that supports it) via a filter. Here is the filter: shortcode_atts_{$shortcode} where {$shortcode} is the id given to the particular shortcode you’d like to modify. In this example I am overriding the embedded video width and height to force it to a […]
This function will extend the default get_field function within Advanced Custom Fields to also allow you to: pass in a default value in case none are found fall back to site options (if one exists) pass in the ID of the post to get the field from and then apply the previous actions
The demo plugin can be downloaded here.
Place this snippet of code in your functions.php file or in a plugin and then your admin bar will display the path of the template being currently used:
Gravity Forms by default will write an inline JavaScript call to jQuery on every form you add to a page. This will throw an error if you’re loading jQuery in the footer of your site (which you should be doing). This is the error: Uncaught ReferenceError: jQuery is not defined There’s an extremely hidden bit […]