WordPress.org

Ready to get started?Download WordPress

Forums

Removing html from Post titles (5 posts)

  1. rulethenation
    Member
    Posted 1 year ago #

    i use <b></b> and <i></i> in my post titles and i dont want them showing on facebook, is there a code that can strip them?

  2. tweetpressfr
    Member
    Posted 1 year ago #

    hi, I'd go for the_title_attribute() instead of the_title : the_title_attribute() documentation

  3. rulethenation
    Member
    Posted 1 year ago #

    is there anyway i can put a piece of code in my functions.php to make the_title_attribute() used globally ? or for the_title to be stripped there?

  4. tweetpressfr
    Member
    Posted 1 year ago #

    I don't know such a technique.
    To me this kind of massive change can result in bad surprises.

  5. rulethenation
    Member
    Posted 1 year ago #

    if i change the_title to the_title_attribute on my single page, will facebook still take the_title?

Topic Closed

This topic has been closed to new replies.

About this Topic