Monthly Archives: December 2011

how to print contents of specific div at html?

function printdiv(id) { try{ var x = ”; x = document.getElementById(id).innerHTML; //alert(x);”,’name’,’scrollbars=yes,resizable=yes,height=500,width=500,toolbar=1′); newwindow2.title = “The new title goes here.”; var tmp = newwindow2.document; tmp.write(x); newwindow2.print(); tmp.close(); newwindow2.close(); }catch(err){} }

Posted in java Script

how to get categories of post in wordpress?

must be in loop foreach((get_the_category()) as $category) { echo $category->cat_name . ‘ >> ‘; }

Posted in Uncategorized, wordpress

How to activate curl in xampp?

1. Locate XAMPP install directory 2. open php/php.ini (probably C:\xampp\php\php.ini or C:\ program files\apachefriends\xampp\php\php.ini) 3. do a search for the word ‘curl’ and uncomment (remove the leading semicolon) that line before removing ;extension=php_curl.dll after removing: extension=php_curl.dll 4. save & close 5. open apache/bin/php.ini (probably C:\xampp\apache\php.ini or C:\ program files\apachefriends\xampp\apache\php.ini) … Continue reading

Posted in php

how to add filter for wordpress?

excerpt length is set to 55 words. To change excerpt length using excerpt_length filter, add the following code to functions.php file in your theme: function custom_excerpt_length( $length ) { return 20; } add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

Posted in wordpress

what is the event bus?

An event bus is a messaging channel where an event producer sends an event, and any number of event listeners can receive the event and act on it.  The important distinction between an event bus and basic event handling is … Continue reading

Posted in Uncategorized

Introduction to Web Services

Web services are distributed application components that are externally available. You can use them to integrate computer applications that are written in different languages and run on different platforms. Web services are language and platform independent because vendors have agreed … Continue reading

Posted in Web Services

how to enable submenu in artisteer wordpress theme

/wp-content/themes/smartwave/library/defaults.php change ‘art_menu_depth’ => 1, ‘art_menu_source’ => “Pages”, ‘art_vmenu_depth’ => 1, ‘art_vmenu_source’ => “Categories”,   to ‘art_menu_depth’ => 0, ‘art_menu_source’ => “Pages”, ‘art_vmenu_depth’ => 0, ‘art_vmenu_source’ => “Categories”,

Posted in wordpress | Tagged , , , ,