Error if post is On Top
-
Thanks for this simple but usefull widget!
If post is On Top the widget still will give a post that is NOT included.
The function $posts->have_posts() will still give a unwanted (excluded) category record if that record is On Top of a Category.
Solution is simple:
In file plugin-class.php row ± 132, change
if ($posts->have_posts()) {etc…}
in
$no = $posts->found_posts;
if (($no>0)&&$posts->have_posts()) {
etc….}Suc6
- The topic ‘Error if post is On Top’ is closed to new replies.