![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
formatting posts in wordpress...
Hello, what is best way for adding posts to wordpress ? I tried to make some html before in some wysiwyg editor, and copy and paste it later to wordpress, but wordpress editor seems to add <br> tag everywhere...... Do you know some EASY solution for making nice wordpress posts (like nice html sites), I mean with all images putted, videos embedded and so on....is there some nice editor to do it ?
yeah i know i'm lame at wordpress.....but Thx ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Posts: 182
|
Add this to your functions.php file:
Code:
function my_formatter($content){ $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach($pieces as $piece){ if(preg_match($pattern_contents, $piece, $matches)){ $new_content .= $matches[1]; } else{ $new_content .= wptexturize(wpautop($piece)); } } return $new_content; } remove_filter('the_content', 'wpautop'); remove_filter('the_content', 'wptexturize'); add_filter('the_content', 'my_formatter', 99); There is probably a plugin to do this. I'm not sure. Also, you can manually edit one of the WP core files to do this as well for all your posts. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
|
bump bump
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Posts: 182
|
There's no need to bump this thread. it was JUST posted and I just answered it.
I know you're not a bot, but you're just a person somewhere running up your post count by posting "bump bump" "thanks for this" "good luck" "2 cents" "lol" posts all day. My god that gets annoying, QUICK, when half the GFY posts are spamhumans. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
hey, thank you very much, i will try it....
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Arthur Flegenheimer
Industry Role:
Join Date: Jul 2006
Location: New York City
Posts: 11,056
|
If you use www.blogdesk.org application to create posts. There is a format function in this program that you can use. It is a great tool. You can also add custom fields and do a bunch of other cool stuff. Publish to multiple blogs so on so forth.
|
![]() |
![]() ![]() ![]() ![]() ![]() |