Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wordpress Stripping Hyperlinks

Featured Replies

OK i'm nearly down to my last hair and it's going to be one of those obvious things as always but Google and Codex are bringing no joy!

 

When i'm writting a page in Wordpress' admin, it's stripping all hyper links out.

 

The current test page text is...

 

Feel <a href="#">free</a> to email us at <a href="mailto:mail@mail.co.uk">mail@mail.com.co.uk</a> or fill in the form below.

 

...and this has been entered in the inbuilt HTML editor (visual editor is disabled but didn't work even when it was enabled).

 

The view source via the browser of this looks like...

 

Feel free to email us at mail@mail.co.uk</a> or fill in the form below.

 

I've built tons of themes and Wordpress sites so this has stumped me no end!

Doesn't WP use a modified version of TinyMCE? If so this might be of help -http://tinymce.moxiecode.com/wiki.php/TinyMCE_FAQ#TinyMCE_strip_away_attributes_or_tags_from_my_source.3F

  • Author

Yeah i'm pretty sure it does but nothing on there really applies.

Even with RTE turned off it still does it. It's only this site too, none of the others i've worked on have done it.

 

:blink:

Yeah i'm pretty sure it does but nothing on there really applies.

Even with RTE turned off it still does it. It's only this site too, none of the others i've worked on have done it.

 

:blink:

 

Check the basics, disable all plugins first, check your using the_content() and go.

You using a new theme on this site? It's always possible that someone wrote a filter to strip tags out.

 

Is it stripping the tags out when you save in the admin panel or when you output the page?

  • Author

You using a new theme on this site? It's always possible that someone wrote a filter to strip tags out.

 

Is it stripping the tags out when you save in the admin panel or when you output the page?

 

It's written by me based on a framework i put together and have used about a dozen times with no problems... that's why i'm about to launch the laptop out of the window :D

 

It's stripping them from the live page output, although they are still there in the admin page.

  • Author

Arghghgh what a nob!

 

a.g.r.c made me think a little deeper and then i noticed i'd pointed the loop-page.php at the index loop, which used get_excerpt so it was stripping the links... doh!

 

Thanks everyone, been a long day.

 

:p

Edited by MikeChipshop

...It's stripping them from the live page output, although they are still there in the admin page...

 

You using the

<!-- more -->

tag anywhere in the content? It might be showing an excerpt even with the_content().

 

http://codex.wordpress.org/Function_Reference/the_content

 

You could always try making sure the argument for $strip_teaser is set to FALSE.

 

Other than that I'm stumped.

  • Author
...Other than that I'm stumped.

 

It's cool Porkchops, i discovered the problem... My blindness!

 

Arghghgh what a nob!

 

a.g.r.c made me think a little deeper and then i noticed i'd pointed the loop-page.php at the index loop, which used get_excerpt so it was stripping the links... doh!

 

Thanks everyone, been a long day.

 

:p

...which used get_excerpt...

 

That will do it!

 

Glad you figured it out! We all have days like that...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.