Should I use include or load_template for including shortcodes, plugins and so on?
load_template() is for cases where you need the following global variables in an included file: $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID If you don’t need those, or if you use global in those files anyway, it isn’t needed. locate_template() and get_template_part() are for cases when you want to allow child … Read more