Home › Forums › General Issues › ACF Groups and get_field › Reply To: ACF Groups and get_field
Fair enough, but the header part works so I know PHP in itself works right?
Nothing comes up or happens when I do the <?php print_r($hero); ?>
, what is supposed to happen? I now also noticed when I inspect that it says an error to the far right (using Google Chrome):
scripts.js?ver=1:46 Uncaught TypeError: $ is not a function
at panelAccordian (scripts.js?ver=1:46)
at scripts.js?ver=1:89
at scripts.js?ver=1:138
DevTools failed to load SourceMap: Could not load content for http://localhost/wpone/wp-content/themes/ThirdTheme/plugin-frameworks/maps/swiper.jquery.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for http://localhost/wpone/wp-content/themes/ThirdTheme/plugin-frameworks/bootstrap.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for http://localhost/wpone/wp-content/themes/ThirdTheme/plugin-frameworks/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Why did this happen? Is this related?
This is my functions.php:
<?php
function load_stylesheets(){
// Everything from the Luigis template
wp_register_style("font", get_template_directory_uri() . "/fonts/beyond_the_mountains-webfont.css", array(), 1, "all");
wp_enqueue_style("font");
wp_register_style("bootstrap", get_template_directory_uri() . "/plugin-frameworks/bootstrap.min.css", array(), 1, "all");
wp_enqueue_style("bootstrap");
wp_register_style("swiper", get_template_directory_uri() . "/plugin-frameworks/swiper.css", array(), 1, "all");
wp_enqueue_style("swiper");
wp_register_style("ionicons", get_template_directory_uri() . "/fonts/ionicons.css", array(), 1, "all");
wp_enqueue_style("ionicons");
wp_register_style("styles", get_template_directory_uri() . "/common/styles.css", array(), 1, "all");
wp_enqueue_style("styles");
// This is a custom stylesheet of CSS that you can use to override anything of the above.
wp_register_style("custom", get_template_directory_uri() . "/custom.css", array(), 1, "all");
wp_enqueue_style("custom");
}
add_action("wp_enqueue_scripts", "load_stylesheets");
function load_js() {
wp_register_script("jquery", get_template_directory_uri() . "/plugin-frameworks/jquery-3.2.1.min.js", array(), 1, 1);
wp_enqueue_script("jquery");
wp_register_script("bootstrapjs", get_template_directory_uri() . "/plugin-frameworks/bootstrap.min.js", array(), 1, 1);
wp_enqueue_script("bootstrapjs");
wp_register_script("swiperjs", get_template_directory_uri() . "/plugin-frameworks/swiper.js", array(), 1, 1);
wp_enqueue_script("swiperjs");
wp_register_script("scriptsjs", get_template_directory_uri() . "/common/scripts.js", array(), 1, 1);
wp_enqueue_script("scriptsjs");
wp_register_script("customjs", get_template_directory_uri() . "/customjs.js", array(), 1, 1);
wp_enqueue_script("customjs");
}
add_action("wp_enqueue_scripts", "load_js");
Did I do something wrong here? I am very lost..
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.