07/04/2016 at 5:26 pm
#381482
Keymaster
@ Bene
re: It worked, but I think you mixed something up :-)
Yep, I did :/
the code is right, but change the meta_key the Category Slug. You can find these on the Categories admin page.
re: So I don’t need the assigned categories of an entry, but the current selected category from the shortcodes…
The shortcode options will be found in the $atts array. So the category shortcode option would be found like this:
$atts['category']
So using the shortcode from your original post, the value would be 4. Does that help you?
