Download Widget shows Articles instead of downloads in Archive-Page

Viewing 2 posts - 1 through 2 (of 2 total)
#47201

Hello.

I have a problem. I use WPDM free as sidebar widget. On normal pages it works correctly, shows the thumbnail of the download and everything is perfect. (see screenshot 1)

When I open an archive page, (and only then!!!) the widget doesn’t show the downloads anymore, but the last blog articles and the notion, that the “download access is denied”. There is NO mixup between categories between the articles and the downloads. (see screenshot 2)

If you want to check the page go to: http://der-oderlandkurier.de
To see the error, click left widget “Artikelarchiv”.

Please help, if possible…

Best regards
Kaspar

#47206

Forget my problem. I solved it myself.
Sorry to bother you!

For others:

I had a stupid function inserted in my functions.php, didn’t need it, deleted it. Problem solved.

It looked like this:

add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if(is_category() || is_tag()) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘post’,’page’,’articles’,’nav_menu_item’,’page’,’team_member’,’team’,’wpdmpro’);
$query->set(‘post_type’,$post_type);
return $query;
}
}

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Download Widget shows Articles instead of downloads in Archive-Page’ is closed to new replies.