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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-27-2010, 10:41 AM   #1
klinton
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
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-27-2010, 10:59 AM   #2
cyber
Confirmed User
 
cyber's Avatar
 
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);
now in any post you don't want WP to auto-format, type "[raw]" at the beginning of the post, and "[/raw]" at the end of the post.

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.
cyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-27-2010, 11:05 AM   #3
LoveSandra
So Fucking Banned
 
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
bump bump
LoveSandra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-27-2010, 11:07 AM   #4
cyber
Confirmed User
 
cyber's Avatar
 
Industry Role:
Join Date: Jan 2004
Posts: 182
Quote:
Originally Posted by LoveSandra View Post
bump bump
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.
cyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-27-2010, 11:11 AM   #5
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
hey, thank you very much, i will try it....
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-27-2010, 11:18 AM   #6
Supz
Arthur Flegenheimer
 
Supz's Avatar
 
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.
Supz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.