Timeline for How to not display subcategories in Recent Posts widget area?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 8, 2016 at 2:21 | comment | added | Noey | @TimMalone, I didn't realize there was another file used to categorize posts. I attached part of the widget-home-posts file code above that I believe does the actual categorizing of the posts. With the code there, I assume I need to limit the $args['cat'] = $instance['cat']; to exclude the specified category ID's, or am I still missing something? | |
Jun 8, 2016 at 2:12 | history | edited | Noey | CC BY-SA 3.0 |
added 983 characters in body
|
S Jun 6, 2016 at 12:53 | history | suggested | cjbj |
widgets tag added
|
|
Jun 6, 2016 at 10:52 | comment | added | Tim Malone | In your question you said "Currently, the theme will display recent posts with video thumbnails in a category, but it will also include recent posts within any subcategories of that category". How is that category currently determined? | |
Jun 6, 2016 at 9:32 | review | Suggested edits | |||
S Jun 6, 2016 at 12:53 | |||||
Jun 6, 2016 at 9:29 | answer | added | cjbj | timeline score: 1 | |
Jun 6, 2016 at 9:12 | comment | added | Noey | I added more of the code to the original post; however, I can't find any categories defined. It looks like the array getting passed into get_posts pulls 'post'. Right now this widget allows me to add recent posts by category to the home page. If I specify categories, will this mess with the widget UI and display? | |
Jun 6, 2016 at 9:05 | history | edited | Noey | CC BY-SA 3.0 |
added 163 characters in body
|
Jun 6, 2016 at 7:51 | comment | added | Tim Malone | I'm trying to figure out where the category is currently defined. Is there another part to the code? Usually you would add your category arguments to the array you're sending to get_posts(), but I can't see one there (or elsewhere) | |
Jun 6, 2016 at 5:13 | review | First posts | |||
Jun 6, 2016 at 5:18 | |||||
Jun 6, 2016 at 5:13 | history | asked | Noey | CC BY-SA 3.0 |