Support » Fixing WordPress » How to display URLs as raw text in comments

  • Resolved tabreziqbal

    (@tabreziqbal)


    Hi,

    Whenever I paste the URLs as text in the blog comment section, they are automatically converted to hyperlinks, which might be the desired behaviour in majority of the cases. But is there a way to override this behaviour and display text as text? Does wordpress support(be made to support) something like:

    [no-link]:http://blahblah.com/foo OR
    !http://blahblah/com/foo

    Or do I have to write a plugin for this?

    Thanks.

    PS: Why is there no absolute HTML raw editing mode in wordpress? There is WYSIWYG and then there is HTML mode in which the paragraphs, line breaks are still generated. Why not give access to the raw HTML too?

Viewing 3 replies - 1 through 3 (of 3 total)
  • you dont have to write a plugin, just comment out:

    add_filter('comment_text', 'make_clickable');

    inside /wp-includes/default-filters.php

    I spose if you wanted a choice you could write a plugin.

    Thread Starter tabreziqbal

    (@tabreziqbal)

    hmmm…that would remove the filter for all the urls I guess 🙂

    The information you have provided is ofcourse very important to me as I can atleast remove the filter and then create all the hyperlinks manually by hand(even if that is 90% of the time), so thank you very much for it.

    My concern is about the urls present in the existing comments. I will have to form hyperlinks by searching for all of them now! a plugin for a quick-tag or something like that is what would be a long term solution I think.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display URLs as raw text in comments’ is closed to new replies.