Taxonomy Parent not showing up in address bar

I found an answer within 10 minutes of posting this. 🙂 Just add ‘hierarchical’ => true in the rewrite=>array() of the taxonomy as follows: $args = array( … ‘hierarchical’ => true, ‘rewrite’ => array( ‘slug’ => ‘THE-CHOSEN-SLUG’, ‘hierarchical’ => true, ), ); register_taxonomy( ‘my-custom-taxonomy’, array( ‘page’, ‘my-custom-post-type’ ), $args ); Then flush the rewrite rules … Read more

Loading custom jQuery and HTML in a WordPress page

I would do this in a page template. In your theme, create a file named page-app.php with the following content: <?php /** * Template Name: App */ function wpdev_137109_enqueue_scripts() { $file=”/js/myscript.js”; wp_enqueue_script( ‘myscript’, get_stylesheet_directory_uri() . $file, array( ‘jquery’ ), filemtime( get_stylesheet_directory() . $file ), TRUE ); $file=”/css/mystyle.css”; wp_enqueue_style( ‘mystyle’, get_stylesheet_directory_uri() . $file, array(), filemtime( get_stylesheet_directory() … Read more