1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to remove unwanted text in Each post

Discussion in 'Blogging' started by havoc21392, Jan 4, 2009.

  1. havoc21392

    havoc21392 Newbie

    Joined:
    Nov 14, 2007
    Messages:
    49
    Likes Received:
    2
    I setup an autoposter on my wordpress blog but how can I remove unwanted text that come back in each post?

    Example:

    How can I remove the ''Get more info here!!'' ( It comes back every time in each post made by wp-o-matic ) ?
     
  2. nasal

    nasal Registered Member

    Joined:
    Nov 27, 2008
    Messages:
    66
    Likes Received:
    25
    Occupation:
    Student
    Location:
    Slovenia
    Home Page:
    You can do it in phpmyadmin (if you have access to it) by writing this in the sql textarea:

    Code:
    update "table" set "field" = replace("field", 'from what', 'towhat');
    so let's say

    Code:
    update wp_posts set post_content = replace(post_content, 'Get more info here!! link', '');
    This is for the posts it has already posted.. for the rest just edit the plugin to cut that line out!
     
  3. havoc21392

    havoc21392 Newbie

    Joined:
    Nov 14, 2007
    Messages:
    49
    Likes Received:
    2
    How would i do it for future posts?
     
  4. nasal

    nasal Registered Member

    Joined:
    Nov 27, 2008
    Messages:
    66
    Likes Received:
    25
    Occupation:
    Student
    Location:
    Slovenia
    Home Page:
    If it's the plugin posting the links (links are not present in the feeds) you have to edit the plugin, find the line of code where you see the link and edit it so it doesn't post.. if it's in the feed, you should add a line that replaces the content deleting the link from the feed.
     
  5. havoc21392

    havoc21392 Newbie

    Joined:
    Nov 14, 2007
    Messages:
    49
    Likes Received:
    2
    For the second option , Should i add the line that replaces the content in phpmyadmin with the code you had provided?
     
  6. nasal

    nasal Registered Member

    Joined:
    Nov 27, 2008
    Messages:
    66
    Likes Received:
    25
    Occupation:
    Student
    Location:
    Slovenia
    Home Page:
    No.. you should write it in php and add the code to the plugin.. are the links always the same and at the end?
     
  7. havoc21392

    havoc21392 Newbie

    Joined:
    Nov 14, 2007
    Messages:
    49
    Likes Received:
    2
    The links or text are always the same and always at the same spot just not necessarily at the end. What code would i need to write?
     
  8. agora

    agora Newbie

    Joined:
    Dec 29, 2008
    Messages:
    13
    Likes Received:
    0
    Do it the simple way ! Get " Search and Replace " plugin. Enter "Get more info here!! " in the search box and leave blank the replace box. This will erase all "Get more info here!! " from all your posts. It will NOT erase the future ones !