PHP Convert XML to JSON

PHP convert xml to json is a very easy for you. please follow this tutorial and get xml to json format. Add Xml File: <?xml version=”1.0″ encoding=”UTF-8″?> <men_fashion> <product> <name>Piped Luxe Pique Polo</name> <price>$10.99</price> <description>Price Reflects 40% Off</description> </product> <product> <name>Striped Luxe Pique Polo</name> <price>$12.99</price> <description>Our softest polo yet is perfect for hanging out at […]

Custom Post Type With Taxonomy

Custom post type is a  new post type of wordpress. You can open your theme folder and function.php and added below this code for custom post type. add_action(‘init’, ‘cl_service’); function cl_service() { $labels = array( ‘name’ => ‘Service’, ‘singular_name’ => ‘Service’, ‘menu_name’ => ‘Services’, ‘name_admin_bar’ => ‘Services’, ‘add_new’ => ‘Add New’, ‘add_new_item’ => ‘Add New […]

How to fix woocommerce image size

Woocommerce is very popular eCommerce website. Sometimes this site products images is now display in correct size. How to fix it? First you can open theme folder then function.php file & paste below code in this file last. Image will be full size. function woocommerce_template_loop_product_thumbnail(){ global $product; $image_size=’full’; echo $product ? $product->get_image( $image_size ) : ”; […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top