WordPress YouTube oEmbed Filters
Get ride of over branding and the related videos at the end of the video for wordpress oEmbed videos.
WordPress YouTube oEmbed Filters Read More »
Get ride of over branding and the related videos at the end of the video for wordpress oEmbed videos.
WordPress YouTube oEmbed Filters Read More »
I came across this little snippet for querying records where a date field matches today’s date. Using the date function to make sure that only the date portion is returned without the time makes it a quick query that does not require using an external programming language to try and format today’s date correctly for
SELECT records with Today’s Date Read More »
In case you need to dynamically populate the e-mail notifications for your forms, you can make modifications with the gform_notification filter. The example below allows you to modify a specific form (form id 7), or you can leave off the “_7” at the end to target all forms for the site. I’ve used this to
Alter Gravity Form Notification E-mails Read More »
The following code will allow you to vertically center content in a box, without having to use the css display properties of table and table-cell. reference: http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/
Vertical Align Content Without Using Display Table Read More »
A simple function that will allow you to get the URL parameters in javascript. http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
Get URL Parameters in Javascript Read More »
This function will return the shopp objects that are tagged as featured in an array. Once the objects are returned you can use the shopp() function, when looping through the array, to return the tag for the product (see https://shopplugin.net/api/shopp/). This will be faster than looping through all the products looking for ones that are
Get the Shopp Featured Products Read More »
The ACF Pro plugin apparently does not work any longer with the shopp plugin product categories. I found this code to add that support to ACF Pro. https://gist.github.com/WazzaJB/f7c75e05a325c86dd421
Adding ACF Pro support to Shopp Categories Read More »
Create yourself a wordpress admin user account if you only have ftp access to a site. Add this snippet to the theme’s functions.php file, or in a file in ~/wp-content/mu-plugins/ folder. Create New Admin Account in WordPress via FTP
Add WordPress Admin Account via FTP Read More »
I recently needed to work with a taxonomy that was created for a custom post type, where I needed to access the parent taxonomy. I came across this same code in the wordpress support forums. It should be useful when working with taxonomy’s in the future. reference: https://wordpress.org/support/topic/if-current-taxonomy-has-child-andor-parent
Working With Taxonomy’s Read More »
Occasional I need to add a top navigation list or navigation list in the footer, and want to add a separator like the pipe symbol to make it obvious the separation of titles for each of the links. A simple solution to this is adding some css to automatically append them for you. reference: http://stackoverflow.com/questions/9171699/add-a-pipe-separator-after-items-in-an-unordered-list-unless-that-item-is-the-la
Unorder List Navigation with Separator Read More »