How to disable default category linkbuilding?

If you’re using pretty permalinks – which you are, with this type of URL – WordPress will automatically try to figure out any URL that you type in. In your example URL, “company” is the slug. So, when you type in example.com/company, WordPress uses that slug to figure out “Okay, I only see one post … Read more

Get parrent category name

You could have a category description. For example the Cat 4 will have the category description as : From Cat3 in Cat 1. You add the category description when you edit the category inside of WP > Posts > Categories Then to display the category description use this PHP code inside of your archive.php theme … Read more

Display the last post by each category?

Try this <?php $post_type = “post”; $taxonomy = “category”; $terms = get_terms( array( ‘taxonomy’ => $taxonomy, ‘hide_empty’ => 0, ‘hierarchical’=> 1, ) ); echo ‘<ul>’; foreach($terms as $term): $term_id = $term->term_id; $term_name = $term->name; $query = array( ‘post_type’ => $post_type, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 1, ); $query[‘tax_query’] = array( array( ‘taxonomy’ => $taxonomy, ‘terms’ … Read more