References get_stylesheet_directory() – file path to current theme directory get_stylesheet_directory_uri() – URL to current theme directory get_template_directory() – file path to parent theme directory get_template_directory_uri() – URL to parent theme directory
By default when you enqueue jQuery in WordPress you must use jQuery, and $ is not used (this is for compatibility with other libraries). Your solution of wrapping it in function will
Create a custom image field for Product Category / Post Category / Custom Post Catgeory, Then add the code like it shows in example. #CODE SAMPLE