WordPress.org

Ready to get started?Download WordPress

Forums

Help with code (5 posts)

  1. TheSage
    Member
    Posted 8 years ago #

    I am trying to add the "rel="nofollow"" attribute into the below code [code]ID) .[/code] Please help...

    [code] if ($use_more_link && $more_link_text) {
    if($force_more) {
    $output .= ' <' . $tag . ' class="more-link">
    ID) . '#more-' . $post->ID .'" title="' . $more_link_title . '">' . $more_link_text . '</' . $tag . '>' . "\n";
    } else {
    $output .= ' <' . $tag . ' class="more-link">ID) . '" title="' . $more_link_title . '">' . $more_link_text . '</' . $tag . '>' . "\n";
    }
    }

    $output = apply_filters($filter_type, $output);

    return $output;
    }[/code]

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Could you paste your code here:
    http://pastebin.com
    Come back with the url you are given and tell us what you are trying to do.

  3. TheSage
    Member
    Posted 8 years ago #

    http://pastebin.com/711844

    I just wanted to add this attribute rel="nofollow" to line 149.

    149 #
    $output .= ' <' . $tag . ' class="more-link"><a>ID) . '" title="' . $more_link_title . '">' . $more_link_text . '</a></' . $tag . '>' . "n";

  4. TheSage
    Member
    Posted 8 years ago #

    Any help would be greatly appreciated!

  5. TheSage
    Member
    Posted 8 years ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.