I see, well that’s because Network Latest Posts is trying to sort an empty array, I will add a catch for that warning.
Basically it means you’re trying to sort an empty output, in short, no posts were found matching your widget parameters. Could you please create a test page with a shortcode using the same parameters your widget is using and check what’s the result?
Hi, well if you want to use categories, you must use their slugs for example if your category is “Fast Cars” then you set fast-cars in the Category(ies) field. If there are multiple categories then you separate them by commas, for example: my-category1, my-category2.
I’m adding a catch for those warnings, it will display “Sorry, I couldn’t find any recent posts matching your parameters” that way you’ll know if there’s something wrong. I’ll be pushing the new version in a minute.
Great!, yes it happens, early versions of NLPosts were using category IDs but it was really painful for non-geeks to easily spot category IDs so I replaced them by their slugs which are more user-friendly.
Good to know everything works as expected now, cheers.
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Widget cause error’ is closed to new replies.