Custom post type single page return to listing page

Ok i got answer by my own I just put the single file condition above the file template Here is my code: add_filter(‘template_include’, ‘foo_template_chooser’); function foo_template_chooser($template){ global $wp; $plugindir = dirname(__FILE__); if( $wp->query_vars[“post_type”] == ‘my_items’ && is_single() ){ if(file_exists(TEMPLATEPATH . ‘/my_items/single-my_items.php’)) { return locate_template(‘my_items/single-my_items.php’); } else { return $plugindir . ‘/template/single-my_items.php’; } } if( $wp->query_vars[“post_type”] … Read more

Glyphicons Dont Show in WordPress Plugin Only

1st alternative is to use the CDN. When using it the icons are visible: https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css 2nd alternative is to include all resources necessary. When you are using only the min CSS, the console is marking the following resources as not found but required : GET wp-content/plugins/new/fonts/fontawesome-webfont.woff2?v=4.4.0 GET wp-content/plugins/new/fonts/fontawesome-webfont.woff?v=4.4.0 GET wp-content/plugins/new/fonts/fontawesome-webfont.ttf?v=4.4.0 404 (Not Found) Here are … Read more