• Resolved saxpaolo

    (@saxpaolo)


    Hello, I’m a WP newby – I’d like to create a list of the most popular custom taxonomies. I’ve already registered the taxonomies as follow, and it works:

    function register_taxonomy_topics() {
      register_taxonomy('topics', 'post', array(
        'hierarchical' => true,
        'show_ui' => true,
        'show_admin_column' => true,
        'labels' => array(
          'name' => _x( 'Topics', 'Nome generale Topic' ),
          'singular_name' => _x( 'Topic', 'Nome singolare Topic' ),
          'search_items' =>  __( 'Ricerca Topic' ),
          'all_items' => __( 'Tutti i Topic' ),
          'parent_item' => __( 'Parent Topic' ),
          'parent_item_colon' => __( 'Parent Topic:' ),
          'edit_item' => __( 'Edit Topic' ),
          'update_item' => __( 'Aggiorna Topic' ),
          'add_new_item' => __( 'Aggiungi nuovo Topic' ),
          'new_item_name' => __( 'Nuovo nome Topic' ),
          'menu_name' => __( 'Topics' ),
        ),
        'rewrite' => array(
          'slug' => 'topics',
          'with_front' => false,
          'hierarchical' => true
        ),
      ));
    }
    add_action( 'init', 'register_taxonomy_topics', 0 );

    Now I’d like to display a list of the most used/popular custom taxonomies in my homepage (let’s say the top 10). Is this possible?
    I’ve already tried to use the WordPress Menu – it’s fine but it force me to select the exact taxonomy to display, while I’d like to have a dynamic list with the most popular (sort of tag cloud, but in the form of a navigation menu).
    Thanks
    Paolo

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Most popular list of custom taxonomies’ is closed to new replies.