Do you need to display an image inside a post using code, but it’s not the featured post image? It can be done if you know the image attachment ID.
Category: Wordpress tutorials
Do you need to add a jQuery datepicker to your custom form in WordPress? It’s very easy, as jquery-ui-datepicker is already embedded in WordPress.
If in one of my previous articles we added data attributes to images upon adding a new image to the content, what can you do if the images are already there? Can you add a data attribute automatically to all images in all posts and pages in WordPress? Let’s say we want to implement Lightbox2 […]
When developing WordPress theme or working on customization for a client you often need to make incremental updates to the css file. Trouble is that the browsers caches the css files and you can’t see what you did on the the spot. If you know the pain, well, there is a solution.
Sometimes you need to customize the standard data attributes attached to an image added to the post or page content in WordPress. For example if you want to implement Lokesh Dhakar’s good old trusty Lightbox2 script you would need to have a new data attribute added to the a href around the image
If you need to redirect all posts from a category to a different domain you can do this very easily from functions.php
Using GIT to do versioning on your code or sharing work with your colleagues might sound scary. You have to understand how and where your code goes and you have to do it via command line… Just scary.
What if you need to display the grandchildren categories from a known category? In this tutorial I will show you one way to browse through categories with get_categories and list the names of the grandchildren categories on a page.
Printing PDF from the database content in WordPress is relatively easy with the help of the help of mpdf library, but you will need ssh access to the server to install it via composer. You should create HTML code as for a normal web page and the mpdf library will turn everything in PDF.
How can you show or hide an input field based on a select value in a HTML form? That’s easy with jQuery. Let’s say you have a form where the user can select a district: and if their district is not in the list, the form shows a field to add a new district (note: […]