Posts under PHP

Virtue Theme: How to enable slider in shop page?

advertisement

wordpressIf you are using Virtue Theme together with Woocommerce, then probably you will ask how to enable slider in shop page. Actually the free version does not built in the slider in the shop page. If you want easy control then i would suggest you buy the Virtue theme premium version, it give you what you want. If you would want to try your luck with some code editing, then you can follow the instruction below.

Virtue Theme: enable slider in shop page, follow the steps below:-

Continue reading Virtue Theme: How to enable slider in shop page? »

How to extract img tag attributes using PHP?

advertisement

phpI’ve this PHP script function that use to extract image tag attributes. This comes very useful when you want to extract image data from some html content for processing or migration. if you know how to modify the regular expression, then the same function can be use to extract any other html attributes! Just few line of codes and hope it benefits everyone here 🙂

To extract img tag attribute using PHP, follow the steps below

Continue reading How to extract img tag attributes using PHP? »

WordPress: How to upload image using script?

advertisement

wordpressJust migrated an old site to WordPress. This old website contain more than 1200 images and if i migrate manually it will take a long time. So i wrote two script, first to extract all the images and it’s description from the old website to a file. And second script is a WordPress plugin script to upload the image to it’s page and set the image caption (useful for gallery and lightbox description) according to the old website description automatically.

wordpress-upload-image-script

How to upload image using script in WordPress

Continue reading WordPress: How to upload image using script? »