• First of all: Great PlugIn!

    Trying to use keywords from my own Taxonomies seems to be a challenge, since other custom taxonomies than the usual once were not offered in the plugins taxonomy pulldown … What am I doing wrong?

    Cheers, Timo

    • This topic was modified 4 years, 10 months ago by darkclown.
Viewing 1 replies (of 1 total)
  • Plugin Author Flector

    (@flector)

    
            $current_tax = $instance['taxonomy'];
            foreach(get_taxonomies() as $taxonomy) {
                $tax = get_taxonomy($taxonomy);
                if (!$tax->show_tagcloud || empty($tax->labels->name)) {continue;}
                echo '<option ' . selected($taxonomy, $current_tax, false) . ' value="' . esc_attr($taxonomy) . '">' . $tax->labels->name . '</option>';
            } ?>
    

    Your taxonomy must be registered with option 'show_tagcloud' => true,, more info here: https://developer.www.ads-software.com/reference/functions/register_taxonomy/

Viewing 1 replies (of 1 total)
  • The topic ‘Struggle with Taxonomies’ is closed to new replies.