wp_star_rating() – Adding a 5 star rating system to theme

Instead of redefining wp_star_rating() for the front end, you should be able to just use the built-in function. From the Codex page for wp_star_rating(): In order to use this function on the front end, your template must include the wp-admin/includes/template.php file and enqueue the appropriate dashicons CSS font information. (emphasis mine) A code sample is … Read more

Can not include file from plugin into theme

This is because you are trying to include a directory by URL, you need to call path, you can use the constant WP_PLUGIN_DIR. Modifying the variable acf_url to the following would work. $acf_url = WP_PLUGIN_DIR . ‘/advanced-custom-fields/acf.php’;

Firebug says jQuery is loaded but $() and jQuery() are not defined

jQuery needs to be outside the wrapper like so: <script type=”text/javascript”> (function($) { $(document).ready(function() { alert(‘hello?’); }); })(jQuery); </script> Edit: A better way would be: jQuery(document).ready(function($) { // $() will work as an alias for jQuery() inside of this function }); Also make sure any inline script tags are AFTER your call to wp_head(); And … Read more