Wow, Mark, I just saw your tutorial on TinyMCE. Thanks, you’ve done it again! I’ll be trying this in the next couple of days.
Now on to the topic at hand … I was just surprised to find that HTML tagging is supported in custom fields and the Title field. I don’t want my users to put HTML tagging in my custom fields or the Title. I’d like to request that you put in an option to disallow HTML tagging in the Title and in custom fields.
I experimented and WordPress does allow tagging in post titles. So I guess I’ll be OK with my users doing it. As for the free-form custom field in which I don’t want tagging, the Append to Post widget looks like it will work. I’ve read http://thedeadone.net/forum/?p=418 and http://thedeadone.net/forum/?p=269 and I think I now understand how to set it up.
Also, I see in the preview of this post that the URLs in the preceding paragraph are automatically rendered as links. It’s not happening on my site. Are you using TDOMF and the Append to Post widget to make that happen?
nitetalker said:
I experimented and WordPress does allow tagging in post titles. So I guess I’ll be OK with my users doing it. As for the free-form custom field in which I don’t want tagging, the Append to Post widget looks like it will work. I’ve read http://thedeadone.net/forum/?p=418 and http://thedeadone.net/forum/?p=269 and I think I now understand how to set it up.
Cool! If you have any questions, just ask.
Also, I see in the preview of this post that the URLs in the preceding paragraph are automatically rendered as links. It’s not happening on my site. Are you using TDOMF and the Append to Post widget to make that happen?
Nope, I’m afraid. This is the basic WordPress comment feature. Topics are started by using TDOMF, but people reply to topics using comments!
Doh! I got a little mixed up, didn’t I? Of course it’s the WordPress comment subsystem.
That out of the way, do you think it’s possible to use an Append To Post widget to convert URLs to links in posts from a TDOMF form. The WordPress function make_clickable appears to handle this. It’s in wp-includes/formatting.php. However, I’m not a programmer — I know enough to be dangerous to my site’s health
— so I don’t know if this function is callable from the widget and if so how to do it.
nitetalker said:
do you think it’s possible to use an Append To Post widget to convert URLs to links in posts from a TDOMF form?
TDOMF magic isn’t needed to do this. It’s easy.
Just put this line of PHP code at the top of your theme’s functions.php.
add_filter(‘the_content’,'make_clickable’);
If the post is previewed, the link markup is visible. For testing purposes I removed the markup from the form beneath the preview before clicking Submit and the URL still got rendered as a link.
I found this on the WP forums at http://wordpress.org/support/topic/147651.
admin
Administrator
August 14th, 2008 at 8:33 am
That is a good point, I never thought about it. Does WordPress support HTML tags in the title of posts? In the meantime you can use the Append to Post widget to strip the tags from the title and the custom field.
Permalink | Quote