How to remove massive link in WordPress content

Your best bet is a ‘search and replace’ plugin that will fix things in the database. I like the “Better Search and Replace” plugin. It has a ‘test’ mode so you can make sure that all is well. You would enter the first term in your question as the ‘search’, and the 2nd term as … Read more

Remove nofollow from specific internal links

I wrote the following code to address ADDING tag attributes, but here is a version to help you locate, and remove nofollow: add_filter( ‘the_content’, ‘ex1_the_content_filter’ ); function ex1_the_content_filter($content) { // finds all links in your content with a nofollow preg_match_all(‘/\<a .*?”nofollow”.*?a>/’,$content,$matches, PREG_SET_ORDER); // loop through all matches foreach($matches as $m){ // potential link to be … Read more

WordPress relative links for regular non image links

There’s a couple of things that you might be able to do here depending on how you are creating your links. Are you talking about page content or are you working in the theme template. If in the theme template you can do use the <?php bloginfo(‘url’); ?> to get the base path of the … Read more