Skip to content

Instantly share code, notes, and snippets.

@ScarletPonytail
Created February 24, 2017 13:31
Show Gist options
  • Save ScarletPonytail/6a8467dcbdd034de7cbcb433544720dc to your computer and use it in GitHub Desktop.
Save ScarletPonytail/6a8467dcbdd034de7cbcb433544720dc to your computer and use it in GitHub Desktop.
Wordpress - Remove hyperlink from post title
It should be something like this:
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
Once you find the line you will need to remove the parts that make the title an active link, which include the <a href="<?php the_permalink() ?>"> and </a> tags. The final line should look like this:
<h2><?php the_title(); ?></h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment