Include parent page slug in permalink for posts <p>I have created a page called Blog and set it as the blog posts page from the wordpress settings.when I create the posts and publish the url structure is like </p> <pre><code>mysite.com/postname </code></pre> <p>i would like it to be like </p> <pre><code>mysite.com/blog/postname </code></pre> <p>so i edited the custom permalink structure to </p> <pre><code>mysite.com/blog/%postname%/ </code></pre> <p>which is working.But i have another custom post type called <strong>Work</strong> now the permlink structure for work goes like </p> <pre><code>mysite.com/blog/work/workname </code></pre> <p>it was </p> <pre><code>mysite.com/work/workname </code></pre> <p>before i edited the permalink custom structure.</p> <p>Is there any help to make it the way i want.ie..</p> <pre><code>mysite.com/blog/postname </code></pre> <p>&amp;</p> <pre><code> mysite.com/work/workname </code></pre> <p>Please help Thanks!!</p> <p><strong>Edit</strong> </p> <p>my website is </p> <p><a href="http://jointviews.com/blog/work/best-school-bus-tracking-system/" rel="nofollow">http://jointviews.com/blog/work/best-school-bus-tracking-system/</a></p> <p><a href="http://jointviews.com/blog/building-long-term-relationships-with-customers-using-digital-media/" rel="nofollow">http://jointviews.com/blog/building-long-term-relationships-with-customers-using-digital-media/</a></p> <p>i have register the post type as follows</p> <pre><code>function work_register() { $labels = array( 'name' =&gt; _x('Work', 'post type general name'), 'singular_name' =&gt; _x('Work Item', 'post type singular name'), 'add_new' =&gt; _x('Add New', 'work item'), 'add_new_item' =&gt; __('Add New Work Item'), 'edit_item' =&gt; __('Edit Work Item'), 'new_item' =&gt; __('New Work Item'), 'view_item' =&gt; __('View Work Item'), 'search_items' =&gt; __('Search Work'), 'not_found' =&gt; __('Nothing found'), 'not_found_in_trash' =&gt; __('Nothing found in Trash'), 'parent_item_colon' =&gt; '' ); $args = array( 'labels' =&gt; $labels, 'public' =&gt; true, 'publicly_queryable' =&gt; true, 'show_ui' =&gt; true, 'query_var' =&gt; true, 'menu_icon' =&gt; get_stylesheet_directory_uri() . '/article16.png', 'rewrite' =&gt; true, 'capability_type' =&gt; 'post', 'hierarchical' =&gt; true, 'menu_position' =&gt; null, 'supports' =&gt; array('title','editor','thumbnail') ); register_post_type( 'work' , $args ); //register_taxonomy("categories", array("work"), array("hierarchical" =&gt; true, "label" =&gt; "Categories", "singular_label" =&gt; "Category", "rewrite" =&gt; true)); } </code></pre>