WordPress custom posts in category and tags archive pages

By default in wordpress custom posts don`t show in category and tags archive pages,to fix this just add this in your theme functions.php file: function pre_get_posts_posttype($query) { if (is_category() || is_tag()) { $post_type = get_query_var(‘post_type’); if ($post_type) { $post_type = $post_type; } else { $post_type = get_post_types(array(‘public’=>true)); } $query->set(‘post_type’, $post_type); return $query; } }

Read full story Comments { 0 }

Super recent posts wordpress widget

Hi, I want to share with you all with my wordpress plugin for recent  posts.I allow choose taxanomies,terms,custom post types and it will show recent post from choosen.It have also options to show or no excerpt,thumbnail,you can also choose excerpt length,thumb sizes.If post haven`t thumb plugin will grab first image from post and create thumb [...]

Read full story Comments { 0 }

WPML get_terms fix

There is bug in WPML Multilingual CMS 2.4.3. When caling get_terms with array of taxonomies and language selected tahn it return empty result.To fix it do this: on /inc/wp-nav-menus/iclNavMenu.class on line 513 $el_types = “‘”.join(‘,’,$txs).”‘”; change to $el_types = “‘”.join(“‘, ‘”,$txs).”‘”;

Read full story Comments { 0 }

Document library wordpress plugin

Plugin: Document library Version: 0.1   Overview Document Library plugin for handling documents as custom post type and its taxonomies ,and have UI for editing taxonomies.Also have shortcode for viewing and searching documents and also widget for showing documents   Download Document library wordpress plugin   Document Library plugin for handling documents as custom post type [...]

Read full story Comments { 0 }