sub posts to parent post

WordPress posts are non-hierarchical and therefore cannot have child posts Most likely the model in question has a hierarchical category(taxonamy) associated with it. EG: Country > Technology type > product type > model Using the catagories like this will give you the required url structure once you assign a pretty permalink structure http://codex.wordpress.org/Introduction_to_Blogging#Pretty_Permalinks

how to change background color of my all post

Add this code to your themes functions.php function post_color_get_meta( $value ) { global $post; $field = get_post_meta( $post->ID, $value, true ); if ( ! empty( $field ) ) { return is_array( $field ) ? stripslashes_deep( $field ) : stripslashes( wp_kses_decode_entities( $field ) ); } else { return false; } } function post_color_add_meta_box() { add_meta_box( ‘post_color-post-color’, …

Read more

Filter/Sort Post Form On Taxonomy page

That happens because wp_dropdown_categories, by default, defines the name of the dropdowns as ‘cat’. You are showing 2 dropdowns in the form, and both are named ‘cat’, because you didn’t define a name for them. So when you submit the form, you get two query vars named cat. For example, if you want the second …

Read more