RDFa Breadcrumb
[resolved] How can i change the tag output? (3 posts)

  1. Julian
    Posted 3 years ago #


    the standard output of a tag is

    Home → the tag

    I found out that

    $item['last'] = $term->name;

    in the rdfa-breadcrumbs.php is responsible for that. I am (still) not a pro in coding. I simply want to change the output to:

    Home → Articels with the tag 'the tag'

    Thanks in advance.


  2. Nitin Yawalkar
    Plugin Author

    Posted 3 years ago #

    Use the following solution :

    • Enter the following code RIGHT BEFORE if ( is_category() || is_tag() || is_tax() ) { :
      if(is_tag()) { $tagged = "Tagged "; }
      		if(is_category()) { $tagged = "Categorized "; }
    • Add the following line RIGHT AFTER $item['last'] = $term->name; :
      $item['last'] = __( 'Articles ' .$tagged .'with <strong>', 'rdfa-breadcrumb' ) . $term->name . __( ' </strong> ', 'rdfa-breadcrumb') ;

      This will show the breadcrumb with separate "Categorized" and "Tagged" pages.

      If this will help to solve your problem, Please Rate this plugin with 5* and Vote as "Working" or you may write an article on your blog about this plugin and link back to it.

      Thanks for asking your query. This will help me to improve my plugin.

  3. Julian
    Posted 3 years ago #

    It is working. Thank you for the quick response!

    Of course i will vote for it.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • RDFa Breadcrumb
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic