Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rfgoetz

    (@rfgoetz)

    Look in wp-topbar.php for function wptb_check_control_options()

    Change this code:

    foreach((get_the_category($thePostID)) as $category) {
      if ( in_array( $category->cat_ID, explode( ',', $wptbOptions['include_categories'] ) ) ) {

    To

    foreach((get_the_tags($thePostID)) as $category) {
      if ( in_array( $category->term_id, explode( ',', $wptbOptions['include_categories'] ) ) ) {

    (see this page http://codex.wordpress.org/Template_Tags/get_the_tags on how to use the get_the_tags() function.)

    Then load the category ID field on the Plugin Admin page with the Tag IDs you want to match on.

    Let me know if this works (I have not tested this.) If it does, I can add this as an option in a future release.

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    Closing – no response in a week.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Tags vs. Catagories’ is closed to new replies.