December 31, 2013

WordPress Stickers & Badges Story

WordPress Stickers & Badges Story Its an interesting story that how i got engaged in WP10 party hosting. When i recall that moment i can’t believe that i was just visiting wordpress.org to view my plugin’s stats. I saw a red label on top of the wordpress website. It was exciting to register via meetup.com. […]

December 27, 2013

PHP – Helper Function – clean_xhtml

PHP – Helper Function – clean_xhtml if ( ! function_exists(‘clean_xhtml’)) { function clean_xhtml($string) { /*$string = preg_replace(‘@<iframe[^>]*?>.*?@siu’, ”,html_entity_decode($string)); $string = preg_replace(‘@<p[^>]*?>.*? @siu’, ”,$string); return $string;*/ $string = ereg_replace(“<[^>]*>”, “”, $string); $string = preg_replace(“@<p[^>]*?>.*? @siu”, ”,$string); return $string; } }

December 20, 2013

WordPress Custom Taxonomy Example

WordPress Custom Taxonomy Example: $_tType = ‘Taxonomy Type’; $_tSlug = ‘wp-taxonomy-type’; $_tId = str_replace(‘ ‘, ‘_’, strtolower($_tType)); register_taxonomy($_tId, ‘post’, array( ‘hierarchical’ => true, ‘labels’ => array( ‘name’ => _x( $_tType, ‘taxonomy general name’ ), ‘singular_name’ => _x( $_tType, ‘taxonomy singular name’ ), ‘search_items’ =>  __( ‘Search ‘.$_tType ), ‘all_items’ => __( ‘All ‘.$_tType ), ‘parent_item’ […]

December 10, 2013

WordPress Plugin – Endless Posts Navigation

Endless Posts Navigation