Support » Plugin: Front-end Editor » [Plugin: Front-end Editor] Links showing up oddly formatted

  • Resolved v4pe

    (@v4pe)


    The links on the front page have the title, follow by “> and then the title again. I read that I shouldn’t use <?php the_title(); ?>”><?php the_title(); ?>, as this will cause problems. The difficult part is that the theme I’m using uses the following

    echo '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark" title="Permanent link to ' . get_the_title() . '">' . get_the_title() . '</a></h2>' . "\n";

    Is there any way to fix this? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu

    (@scribu)

    A) Remove the “title” attribute altogether:

    echo '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h2>' . "\n";

    B) Use striptags():

    echo '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark" title="Permanent link to ' . striptags(get_the_title()) . '">' . get_the_title() . '</a></h2>' . "\n";

    Great, I just used the first suggestion and it worked. Thanks for the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Front-end Editor] Links showing up oddly formatted’ is closed to new replies.