WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Julian
    Member
    Posted 1 year ago #

    Hi,

    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.

    http://wordpress.org/extend/plugins/rdfa-breadcrumb/

  2. Nitin Yawalkar
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    It is working. Thank you for the quick response!

    Of course i will vote for it.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic