Support » Fixing WordPress » How to add Title Attribute to the following Php Code?

  • Hi, I want to add Title Attribute to all the brand taxonomy like this one.

    All ($brand) Phones.

    Now here is the php code.

    <a <?php if (isset($term->term_id) && $brand->term_id == $term->term_id) echo 'class="current" '; ?>href="<?php echo get_term_link($brand); ?>">

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter roggershaw

    (@roggershaw)

    Does any body can help? I need to insert something that will add Title Attribute to the above Term brands?

    Please anybody can help?

    <a <?php if (isset($term->term_id) && $brand->term_id == $term->term_id) echo 'class="current" '; ?>href="<?php echo get_term_link($brand); ?>" title="<?php echo $term->name; ?>">
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add Title Attribute to the following Php Code?’ is closed to new replies.