Simply copy and paste the following code into your functions.php file or wherever your hold your shortcodes. This function will clean up the output of your shortcodes, which is especially important for nested shortcodes.
Although WordPress does make the process of embedding Youtube (among others) videos easy, it does not add a div around embed codes by default, so this is an essential step into making the video embeds responsive. Use the code below to add a wrapping div around each embedded video and also add the required CSS […]
Using the code below, you can add a video that will replace your featured image for the given product. If video is not found, the featured image is displayed instead. Place this code in your functions.php file and note that you may have to edit the function that displays the video to match your theme. […]
Simple plugin to help webmasters and site admins hold contests. Visitors enter their personal details and submit a file to enter the contest. Once their enty is submitted, they are directed to PayPal where they pay the entry fee. After the transaction is completed, their entry becomes valid.
Taxi booking Plugin for WordPress. Ideal for companies that calculate fares using route length. Still under development, it started as a proof of concept. Features: Google Maps API for distance calculation and Places Redux Framework Custom post types and Metaboxes AJAX form handling Simple multi-step form qTip 2 tooltips for error messages Car costs can […]
During a routine audit Sucuri discovered a critical stored XSS vulnerability affecting Akismet, a popular WordPress plugin deployed by millions of installs. This vulnerability affects everyone using Akismet version 3.1.4 and lower with the WordPress “Convert emoticons like and ? to graphics on display“ option enabled, which is the case by default on any new WordPress installation. The […]
There are many times when you’re working on a custom WordPress website that you find yourself having to create several custom post types to improve the clients user experience. In most cases you find that some of these post types would make sense being grouped together under a single menu item. Not only does this […]
This is a great idea if you have clients who are creating their own posts. After you spend time devising an attractive template layout, clients often decide to skip the featured image, ruining the flow and presentation of what you’ve created. This snippet will require the author to select a featured image before the post […]
Ever needed to dynamically add/remove products to a visitor’s cart based on their cart contents? The below functions will help you do just that. Place them in the functions.php of your theme or (better) in a separate plugin and you are all set. Just make sure to modify the qualifies_for_incentive function to work based on […]