How to use placeholder with Select2 and WordPress with wp_dropdown_categories

Recently while working on a site I had an issue with getting a placeholder to show up while using WordPress built in wp_dropdown_categories and Select2. The fix was pretty easy with a little bit of jQuery, which you can see below: (more…)

How to use dynamic tags in PHP with Caldera Engine (My Shortcodes) for WordPress

I recently found a plugin that has become one of my newest favorite (besides pods), that allows you to create your own shortcodes, widgets, posts, and more.  This plugin is called My Shortcodes for the free version, or Caldera Engine for the paid version (which you should get and support the dev).

So when you create a widget, you can create “attributes” that are field inputs (text box, dropdown, etc) that show up when you use the widget…well what happens when you need to use that attribute inside some of your PHP code (it also has a template engine built in)…unfortunately because of how new Caldera is there isn’t much documentation online, but there’s actually a very easy way to access these attributes and use them in your PHP code. (more…)

Allow customers/clients to use promo codes instead of affiliate links in WHMCS

If you’ve ever joined an affiliate program with an online retailer, or some type of company, you already know the most common way used by these sites to track the people you refer to them is normally with some ugly URL link that specifically tells the person it’s an affiliate link (http://somedomain.com/affiliate.php?affid=2838).  Well what happens if you send a person to their site, and then they come back a week later but don’t use your link?  What if they just don’t even sign up because they think the only reason you’re sending them to that site is because you’re an affiliate?  Well, if you have WHMCS, you’re in luck. (more…)