zawiw
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Thanks for your help.
Unfortunaterly, WordPress thinks v2.3 is older than v2.22 which I’ve installed (2.2.2 < 2.3 but 2.22 > 2.3) so I had to update manually.
Forum: Plugins
In reply to: [Plugin: List category posts] List posts with Two categoriesI added a solution for this to list_cat_posts.php
Replace Line 62:
$category = 'cat=' . $atts['id'];by:
if (strpos($atts['id'],'+')){ $category = explode('+',$atts['id']); $category_criteria = 'category__and'; }else{ $category = explode(',',$atts['id']); $category_criteria = 'category'; }And replace Line 75:
$catposts = get_posts($category.'&numberposts=' . $atts['numberposts'] . '&orderby=' . $atts['orderby'] . '&order=' . $atts['order'] . '&exclude=' . $atts['excludeposts'] . '&tag=' . $atts['tags'] . '&offset=' . $atts['offset'] );by:
$catposts = get_posts(array( $category_criteria => $category, 'numberposts' => $atts['numberposts'], 'orderby' => $atts['orderby'], 'order' => $atts['order'], 'exclude' => $atts['excludeposts'], 'tag' => $atts['tags'], 'offset' => $atts['offset'] ));Hope this helps and finds its way into the official plugin version
Forum: Plugins
In reply to: [Plugin: List category posts] List posts with Two categoriesI would also be grateful if their would be a solution for this problem in list-category-posts
Viewing 3 replies - 1 through 3 (of 3 total)