From The Blog

Wordpress: WooCommerce: Add a custom currency / symbol

3 January 2014, in

To add a custom currency paste this code in your theme functions.php file or in a complementary plugin for WooCommerce and swap out the currency code and symbol with your own. After doing so it will be available from WooCommerce settings.



Post a Comment

Wordpress: WooCommerce plugin: How to Override WooCommerce Template File Within a Plugin

30 December 2013, in



Post a Comment

Wordpress: add menu order support to posts and other post types

22 December 2013, in

How to add menu order support to posts and other post types ?

 

add_action( 'admin_init', 'posts_order' );

function posts_order(){
add_post_type_support( 'post', 'page-attributes' );
}



Post a Comment

Wordpress: Featured image box not showing ?

10 November 2013, in

Have you ever been developing in wordpress and did not found the featured image box ?

Sure you have missed adding the support to post thumbnails, just check that this line is present in your functions.php

add_theme_support( 'post-thumbnails' );



Post a Comment

Wordpress: Using WP_Query Arguments

28 October 2013, in
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*


Post a Comment

Get the sources of img tags from html

21 October 2013, in

/**
* get the sources of img tags from html input parameter
*/
function get_html_img_sources($html){
//$html = types_render_field( "gallery_image", array( "size" => "medium", "proportional" => "true",'output'=>'raw') );
if(empty($html))
return array();
$doc = new DOMDocument();
$doc->loadHTML($html);
$imageTags = $doc->getElementsByTagName('img');



Post a Comment

Wordpress: get featured image for a post

9 May 2013, in

How to get featured image "thumbnail" for a post?

$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
echo '$feat_image';


Post a Comment