It just today that jwplayer shortcode has stopped working. I’m using free version JW Player 2.0.5 with JW6 enabled.
I noticed shortcode only works in the post content but not in the custom field. BTW, I’m using advanced custom field plugin to load the player. We have no problem adding other plugins’ shortcodes into the custom field.
I tried to manually execute do_shortcode(“[jwplayer config=”Video” mediaid=”5385″]”) function into the template file but no player is displayed.
Adding the same shortcode into the post content works fine.
I ended up calling the method that executes to add the shortcode. I added the code below into the theme functions.php and seems it fixed the problem:
`add_shortcode(‘jwplayer’, ‘JWP6_Plugin::shortcode’ );’
I’m not sure if it’s a bug or I missed other configuration to make the player working.
Please let me know and thanks in advanced.
- The topic ‘Shortcode is not working in custom field’ is closed to new replies.