How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

After combining a bunch of pieces of other answers I got it working! So here’s the solution for those of you who are struggling with this too: This post and this one helped me out some, so thanks to those guys. Note, all this code, plus your initial custom post type and taxonomy registration code … Read more

Parent / Child formatting in a list of post of a custom post type

I’m guessing the part you want to change is the actual content output area (not the nav). If so, you could do this: <?php $args = array( ‘post_type’ => ‘manual’, ‘posts_per_page’=>’-1′, ‘orderby’=>’menu_order’, ‘order’=>’asc’ ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $class=”parent”; $header=”h1″; if ($loop->post->post_parent !== 0) { $class=”child”; $header=”h2″; … Read more

Custom post type routing with hierarchy

When you declare the custom post type, there is a parameter “rewrite” where you declare the slug for the post type. Change the slug to “media/videos”, and then visit your Settings > Permalinks page to update your rewrite rules. register_post_type( ‘videos’, array(‘labels’ => array(), ‘rewrite’ => array( ‘slug’ => ‘media/videos’, ‘with_front’ => false ) ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)