WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Add ID to list

[Resolved] Add ID to list

Viewing 3 replies - 1 through 3 (of 3 total)
  • TheMikeRoss
    Member

    @themikeross

    I also added another ID in with a div surronding the output:

    Line 85:
    if ( $title ) echo '<div id="' . $this_taxonomy . '">' . $before_title . $title . $after_title;

    I had to do this to determine the difference between two widgets, simply because I use multiple custom Taxonomies.

    Thanks for the plugin – super helpful and a big time saver.

    Plugin Author Nick Halsey
    Participant

    @celloexpressions

    That makes sense, I was trying to figure out a good way to add more selectors without them being ridiculous (like WordPress’ instance ones), but I think using the taxonomy works because people shouldn’t have two of the same one. I also added a container div around the whole thing (displayed as list or dropdown) with .list-custom-taxonomy-widget and the id, but with a container, and released an update just now. The ids are slightly different, just look at the code and it’ll make sense.

    TheMikeRoss
    Member

    @themikeross

    Awesome, updated and it works great.

    Thanks for this plugin – saved me a bunch of time!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Add ID to list’ is closed to new replies.