Here's a pretty simple one that I'm sure has been covered before but I decided to post my own version. It adds a sidebar for a custom post type and replaces the primary sidebar on that custom post type (singular posts). Note that for the second half of this snippet (replacing the Primary
Include Easy Digital Downloads Software Licensing Change Logs in Posts
The Situation Say you use the Software Licensing add-on for Easy Digital Downloads, and that you're selling digital products that are not for WordPress (Software Licensing can parse readme files for WordPress downloads). Since you cannot choose to have Software Licensing parse a readme file to
How to Create Shortcodes that Pull Custom Field Data
Here's a post that I wrote as a "Note to Self." Currently, I'm working on a project that includes a portfolio section with custom fields. Among these fields are those for smaller details (i.e. client, year, location, etc.), which are to be displayed in the sidebar. I could just use HTML and PHP to
How to Filter and Display a Custom Page Title in Genesis
For a new project, I am using the Centric Pro child theme from StudioPress. In that child theme, the page title is displayed at the top, like so: By default, Centric Pro uses the page title for this text. Personally, I prefer to name pages something simple (i.e. Contact, About, etc.) and, for
Create an Unsubscribe Button for PayPal Subscriptions
This quick tutorial shows you how to create an "Unsubscribe" button for your customers when they are registered for recurring billing via PayPal subscriptions. This can come in handy when you use a WordPress plugin (i.e. Gravity Forms) to register your customers/clients for PayPal recurring
Create Random Discount Codes for EDD with Gravity Forms
This post is made possible by yet another great Gravity Forms snippet from David Smith at GravityWiz.com, Creating Coupons for WooCommerce with Gravity Forms. This snippet integrates with WooCommerce, Easy Digital Downloads and Gravity Forms Coupons. I've modified the snippet specifically for Easy
How to Create Tactile Buttons with CSS
I received a question the other day about how to create this kind of button: Hover Over Me to See It's actually very simple. This is nothing more than a regular link that's been styled to look like a tactile button. Basically, when the user hovers over it, it appears to be an actual button
List and Display Currently Hooked WordPress Functions
This code snippet does the following: Retrieves all hooked-into WordPress functions Displays a list of them on a specific page (private page) I came across this snippet from Rarst.net on listing hooked functions in WordPress. It's a great little snippet for debugging, testing or
- « Previous Page
- 1
- …
- 5
- 6
- 7
- 8
- 9
- …
- 13
- Next Page »