My scripts won’t load in, is this code correct?

The following functions print enqueued assets: wp_print_head_scripts() wp_print_styles() print_late_styles() print_footer_scripts() These functions are called on the wp_head and wp_footer actions. If your header and footer are not using the appropriate functions or actions, then the enqueued assets will not be printed.

Is there a way to override only a portion of the function print_media_templates defined in wp-includes\media-template.php?

No, there isn’t. Unless there’s an apply_filters() call, you can’t modify any of the output. You mentioned “the only hook is to the entire function”, but that’s not the case either. There is a do_action() call at the end, but this is an action hook, so it only lets you run something at the end … Read more

Adding count also to parent categories

You could add this to your code: function custom_add_count_on_archive_title( $title ) { $term = get_queried_object(); $term_id = get_queried_object()->term_id; if( $term instanceof WP_Term && ‘category’ === $term->taxonomy ) { $children_terms = get_terms(array( ‘taxonomy’ => ‘category’, ‘child_of’ => $term_id, )); $total_count = 0; if (!empty($children_terms) && !is_wp_error($children_terms)) { foreach ($children_terms as $child_term) { $total_count += $child_term->count; } … Read more

Is it possible to use the_post 2 times in one loop

Yes, but not by calling the_post twice in a loop. Instead, use 2 loops and rewind_posts. The first loop displays column1 and skips even posts. Then you call rewind_posts() to go back to the beginning. The second loop displays column2 and skips odd posts. After the first loop, call rewind_posts(); and it will rewind the … Read more

How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?

This worked for me (tested): add_action( ‘init’, static function () { register_taxonomy( ‘portfolio-work’, ‘post’, array( ‘hierarchical’ => true, ‘labels’ => array( ‘name’ => ‘Portfolio Works’, ‘singular_name’ => ‘Portfolio Work’, ), ‘rewrite’ => array( ‘slug’ => ‘work’, ‘with_front’ => false, ), ) ); } ); Then created new pages titled “Blog” (slug: blog) and “Work” (slug: … Read more