Hi, if you want to put PowerMag HP Categorie Mag as widget and set "all categories" it show's also all forum posts and other stuff. Normally it has to show only post category's but it shows alle posts from mySQL database "wp_post".
thanks for the heads-up although that is not an error, it's how is meant to be as 'all' is simply the select value I decide to use (could be anything). Please don't get this wrong but I'd appreciate if you could avoid reviewing theme code but use the support for actual issues you might face, as I don't have much time to explain every bit of code.
In "wp_posts" there are not only normal posts. There are also posts which are be used by sidebar plugins or other things. And your widget shows me for every selected category also the empty posts from other plugins. So I am not really able to use the layout at the moment.
And I understand that you don't have the time. But other sellers like mh-theme have a good documentation and no errors ;)
Hi, if you want to put PowerMag HP Categorie Mag as widget and set "all categories" it show's also all forum posts and other stuff. Normally it has to show only post category's but it shows alle posts from mySQL database "wp_post".
Will look at it, meanwhile you can set a parent category including only the categories you want to show and select that one instead.
Regards
djwd
Hi,
I discovered another error.
I am using a Sidebar-Plugin for specific sidebars.
If I create for example a sidebar-news I can select the category "news". But it creates an empty field in wp-posts with something like "http://mysite.de/?post_type=condition_group&p=10239"
When I put the Powermag category widget somewhere I can see the empty post. It's only with your theme ...
Hello again,
the error is here: wg-main-cat.php
You are using here 'all':
parent::__construct('pm_main_cat_regular-widget', 'PowerMag - HP Category Regular', $widget_ops, $control_ops);}
function widget($args, $instance){
global $post;
extract($args);
$show_excerpt = isset($instance['show_excerpt']) ? 'true' : 'false';
$title = $instance['title'];
################## $post_type = 'all'; ###########################
It has to be 'any' or 'post'!!!!
Hi there,
thanks for the heads-up although that is not an error, it's how is meant to be as 'all' is simply the select value I decide to use (could be anything).
Please don't get this wrong but I'd appreciate if you could avoid reviewing theme code but use the support for actual issues you might face, as I don't have much time to explain every bit of code.
Thank you
Regards
djwd
In "wp_posts" there are not only normal posts. There are also posts which are be used by sidebar plugins or other things. And your widget shows me for every selected category also the empty posts from other plugins. So I am not really able to use the layout at the moment.
And I understand that you don't have the time. But other sellers like mh-theme have a good documentation and no errors ;)
Hi there,
since you dabble a bit of code there this part on line 42
adding other post types to the list you'd like to exclude should do the trick.
Regards
djwd
Hi, yes. Thats also possible but then i have to add every time I install a specific plugin ;) My solution works also good :D
Second problem with your solution is that it shows theme, plugins, sidebars etc. It's to much to exclude all this posts