Skip to main content
6 events
when toggle format what by license comment
Jun 22, 2020 at 23:17 vote accept Christina
Jun 22, 2020 at 23:12 comment added mozboz oops, maybe you took that from my answer which was wrong.. fixed it :)
Jun 22, 2020 at 23:12 history edited mozboz CC BY-SA 4.0
added 8 characters in body
Jun 22, 2020 at 23:11 comment added mozboz that should work. I think you missed $atts off the end there: if ( ! empty ( $atts['post'] ) ) { $args['post_name__in'] = explode( ',', $atts['post']); }
Jun 22, 2020 at 23:07 comment added Christina That looks like it's what I need! When I try to explode now (under the $args array) all instances of the shortcode go blank (because they're expecting a slug?) so I added it like this: if ( ! empty ( $atts['post'] ) ) { $args['post_name__in'] = explode( ',', $post); } But obviously that's not right because now it's not showing anything.
Jun 22, 2020 at 22:43 history answered mozboz CC BY-SA 4.0