• When we add <br> to the title format so that the secondary title is displayed on a new line the code appears on the front end of the site:

    %title% <br>%secondary_title%

    I have also tried:
    %title% <p>%secondary_title%</p>

    The results is the same with the <p> & </p> displaying on the front end of the site.

    Could you please advise?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi webdev,

    That sounds like HTML is being escaped, that means that it’s not being rendered but merely displayed.

    Please have a look at the following PHP functions; they might help:

    htmlentities();

    htmlspecialchars();

    htmlspecialchars_decode();

    html_entity_decode();

    You can find the documentation for each function on php.net.

    You then have to hook into a filter, probably get_secondary_title();. You can find a list of all available filter hooks in the documentation.

    Appreciate your response, as I’m having this problem as well.

    I copied/pasted your example (below) though the html wasn’t being rendered.
    <span style=”color:#ff0000;font-size:14px;”>%secondary_title%</span>

    Tough situation, as I don’t know PHP, and it seems like a solution for the plugin might be difficult as well.

    Just a follow up that I’m using Divi. It appears to be interfering somehow

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘& code showing in title’ is closed to new replies.