One of the powerful (or let’s say useful) functions that ship with WMPL is ICL_LANGUAGE_CODE, allowing you to translate strings using PHP
Continue readingChecking condition if on a custom post type singular or custom post type archive
If you want to check if you are on custom post type singular or custom post type archive within your
Continue readingHow to disable (and replace) Visual Composer lightbox
One of the reasons you might want to replace Visual Composer lightbox (it is using prettyPhoto actually) is because of
Continue readingHow to separate WordPress loop into sections
In one of my recent projects, the client wanted to create a homepage with several different layouts for groups of
Continue readingHow to retrieve featured image URL in WordPress
If (for some reason) you have the need to get the featured image (or post thumbnail) URL, you can do
Continue readingHow to get commenter ID in WordPress
If you want to output some data (such as biographical info or personal website) for the person who commented on
Continue readingHow to create custom comment walker class in WordPress
There are several walker classes in WordPress – I don’t actually know how many there are because I tend to
Continue readingHow to change a WordPress plugin function using action hooks
This is just one of the many possible scenarios on how to change a function in a WordPress plugin, but
Continue readingHow to copy text from website to clipboard
So this is the scenario – you have this text on your website and would like to have a button
Continue readingCreating responsive charts with JavaScript
Back in the day when web developers didn’t have to care about responsive layouts, life was easier in some cases. For example – charts. There are quite a lot of types of charts and in the beginnings of responsive web, creating responsive charts surely wasn’t a trivial task. But nowadays, given that there are thousands of different JavaScript libraries, it is no surprise that there are excellent libraries for charts. One of my favorite is Chart.js. In case you want to use it on WordPress, you can code it manually you can use a WordPress Charts plugin.
Continue reading