" PHP "

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…)

WordPress Upgrade to 3.4 and can’t access Admin Section, site redirects to upgrade.php, Page Not Found

Just a few minutes ago I attempted to upgrade my WordPress installation to the new version 3.4. Of course something went wrong but luckily it only took me a few minutes to figure it out. The problem I was having was the upgrade completed but then it kept redirecting me to /upgrade.php when I tried to access admin area with a heading of Page Not Found. Basically preventing any access to the admin area. Here’s how I fixed it… (more…)