Tag Info

Hot answers tagged

1

How about creating those categories Cars, Tvs, Trains and Ships as sub categories of locations? Then you could have a navigation menu containing parent categories i.e Briton, Manchester etc. Once a parent category is navigated to you could have a menu that uses the get_terms() function with the parent argument set to the current location term ID that lists ...


1

You could use wp_list_categories, it can be used for any taxonomy, not only categories: $args = array( 'taxonomy' => 'tax' ); wp_list_categories( $args ); See the list of arguments in the codex.


1

register_taxonomy triggers the action registered_taxonomy immediately after it's registered, which gives you the arguments it was registered with. As long as the taxonomy key doesn't change, you can hook that action, modify the arguments, then re-register it. function wpd_update_taxonomy_args( $taxonomy, $object_type, $args ){ if( 'plugin_tax' == ...


1

According to the Wordpress Codex page on Template Hierarchy, you create a template file with the name of taxonomy-portfolio_category.php. WordPress will use that to display the archive for that taxonomy. You can also use taxonomy-portfolio_category-{term_name}.php to create templates for specific terms in your taxonomy.


1

Unfortunately WordPress does not support third-level admin menu, so there's no easy way to achieve the result you want. You can only remove these 4 submenu items, add a submenu item instead which will be a link to a custom admin page and display these 4 links within that page (content). Read about following hooks: remove_submenu_page() add_submenu_page() ...



Only top voted, non community-wiki answers of a minimum length are eligible