Tag Info

New answers tagged

0

echo out the following: wp_get_attachment_image_src( $post->ID, 'medium')[0]; to the attachment url for the medium sized image.


0

Firstly, it is not recommended to use WP_PLUGIN_URL constant, instead use plugins_url() function. Second thing, it will not work when you put your files in the theme. You must put the necessary folder and file in the plugin if have to use this constant or function. Make sure, you have put correct path and you JS file is being loaded properly. ...



Top 50 recent answers are included