[Plugin: upPrev Previous Post Animated Notification] I want to display only one category in upprev
-
Hello everyone!
I am trying to modify the upPrev Previous Post Animated Notification plugin to only display one category instead of all of them from one post. but I don’t know how to do that, I need help. Here is the partial code where I can spot the code to query the categories:$catIDs = array(); foreach((get_the_category()) as $category) { $catIDs[] = $category->cat_ID; } $args = array( "numberposts" => -1, "category" => implode(',',$catIDs), "orderby" => "date", "order" => "DESC" );
There is anyway to modify this code to only call one category?
Thanks for the help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: upPrev Previous Post Animated Notification] I want to display only one category in upprev’ is closed to new replies.