Passing id trough shortcode
-
It’s more like a suggestion then a reel bug , but it would be very usefull for us if we were able to pass the post id through the shortcode. Doing so, we would be abble to use the shortcode on list as well ?? you could only change get_the_id() by something like $post_id = ! empty( $post_id ) ? $post_id : get_the_ID(); and the shortcode would become [oacsspl id=$post_id ] in our code.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Passing id trough shortcode’ is closed to new replies.