Category Archives: Coding

Code Snippets that I want to keep track of, with a short description of the code usage.

WordPress Theme Customizer – Custom Image Library

Recently while working for a client on the WordPress theme customizer, which I had never had an opportunity to used before, his requirements were that he be able to load images into the theme that are not part of the … Continue reading

Posted in Coding, JavaScript, jQuery, PHP, WordPress | Comments Off on WordPress Theme Customizer – Custom Image Library

WordPress Editor in Front-end with AJAX

I was working on a site recently and needed the ability to have the WordPress editor be available in the front-end and using AJAX. I went looking for information on how to accomplish this task and was surprised that I … Continue reading

Posted in Coding, jQuery, PHP, WordPress | Tagged , , , , , , , | Comments Off on WordPress Editor in Front-end with AJAX

SQLSTATE[22003]: Numeric value out of range

A client came to me with a rather strange issue today. They were trying to delete a product from their Magento store and nothing they did would work. They could update the product and make changes to it, but just … Continue reading

Posted in Coding, Magento, PHP | Tagged , , , , , , , | Comments Off on SQLSTATE[22003]: Numeric value out of range

ACF Relationship Sync

I use Advanced Custom Fields for many projects here at Fancy Fiber Designs to make some pretty advanced website functions. You may have already seen our plug-in for Advanced Custom Fields as well to allow you to add a new … Continue reading

Posted in Coding, PHP, WordPress | Tagged , , , , , , | Comments Off on ACF Relationship Sync

Disable right click

This is a simple JavaScript snippet that can be found all over the Internet in various forms. It disables the right click menu in browsers and is usually used in an attempt to limit image theft. We all know that … Continue reading

Posted in Coding, JavaScript | Tagged , , , | Comments Off on Disable right click

Show parent pages from a sub-page

The issue: Site has a page system with three levels of pages. When a page has sub-pages, show the children in the menu, but at the bottom level, show the parent’s menu items still. The fix: If the page has … Continue reading

Posted in Coding, PHP, WordPress | Tagged , , , , | Comments Off on Show parent pages from a sub-page