Category: PHP

Load data in random order from ACF Repeater field
December 20th, 2017 PHP 264 views

WordPress ACF(Advanced Custom Fields) plugin provides a really nice feature of repeatable fields. So you can add set of sub fields easily and then fetch them on frontend using a very simple loop. You can make any kind of field repetitive. So it can be textbox, selectbox, date picker, image upload and many more. You […]

Read more  
Generate Youtube Embed Code from URL using PHP
June 14th, 2017 PHP 1,153 views

This is just a quick code snippet post on How to generate Youtube Embed Code from URL string PHP. Basically when we are building a user profile modules, and we need to take youtube video URLs from users, its very helpful. So that we just by using this URL, we can generate Youtube Embed code. […]

Read more  
How to add a div to wrap widget content area after widget title
December 14th, 2016 PHP 2,889 views

While developing wordpress theme, it has been always an essential thing for every theme developers. Everytime we create Widgets, wordpress allows us to wrap div to 2 places Over the whole widget Over the widget title but there is no option to wrap a div over the widget content. Here is the syntax that shows the […]

Read more  
Convert PDF to Image using PHP
December 27th, 2015 PHP 2,894 views

Recently one of my friend asked me if there is a way to convert a PDF to Image file. I tried to do that few months ago by following some tutorial that was using combination of Ghostscript and Imagemagick tools. But I didn’t succeed at that time as there were so many version conflicts on […]

Read more  
Instant image resize using PHP GD library
August 21st, 2015 PHP 5,483 views

While working on ecommerce website, I once faced a situation when my client requests me to change all the product thumbnail resolutions and I had to resize all the product images manually. Infact I made a PHP script to resize all the images in specific folder. But there is even better solution for this which […]

Read more