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

Remove Images

Discussion in 'Blogging' started by cjw10, Jan 15, 2010.

  1. cjw10

    cjw10 Junior Member

    Joined:
    Jan 7, 2010
    Messages:
    116
    Likes Received:
    32
    Occupation:
    Student
    Location:
    Illinois
    Hey,

    I've been searching everywhere on how to remove images from wordpress posts.

    I'm using Wp-O-Matic and some of the feed's I'm using have images that are associated with the posts and the images mess up my theme.

    I've searched here, google, wordpress, etc. Can't find anything that works. I tried to make sense out of regex, but ended up more confused.

    Any help? Aside from remove those feeds.
     
  2. nikhil88

    nikhil88 Regular Member

    Joined:
    Jun 12, 2008
    Messages:
    208
    Likes Received:
    97
    Occupation:
    E&TC Engineering Student
    Location:
    Pune,India
    try this as regex
    Code:
    <a.*?><img.*?></a>
     
    • Thanks Thanks x 1
  3. l99k1

    l99k1 Newbie

    Joined:
    Jun 9, 2009
    Messages:
    15
    Likes Received:
    1
    Home Page:
    or if you are using feeds you could try yahoo pipes to manipulate the feed. I had the same problem on my site a few weeks ago.
     
  4. nikhil88

    nikhil88 Regular Member

    Joined:
    Jun 12, 2008
    Messages:
    208
    Likes Received:
    97
    Occupation:
    E&TC Engineering Student
    Location:
    Pune,India
    you could use the regex i provided above for yahoo pipes too
     
  5. cjw10

    cjw10 Junior Member

    Joined:
    Jan 7, 2010
    Messages:
    116
    Likes Received:
    32
    Occupation:
    Student
    Location:
    Illinois
    Thanks for the help nikhil
     
  6. macpaulos

    macpaulos Regular Member

    Joined:
    Oct 14, 2009
    Messages:
    295
    Likes Received:
    53
    Hey Nickhil88, how would I remove a specific image (a share button)?

    <img src="http://media.livenationinternational.com/Felix1/Images/Shared/button1-share.gif" border="0" alt="Share" />

    I wanna remove the above. Cheers :D
     
  7. nikhil88

    nikhil88 Regular Member

    Joined:
    Jun 12, 2008
    Messages:
    208
    Likes Received:
    97
    Occupation:
    E&TC Engineering Student
    Location:
    Pune,India
    try typing in that whole code in the regex
     
    • Thanks Thanks x 1
  8. macpaulos

    macpaulos Regular Member

    Joined:
    Oct 14, 2009
    Messages:
    295
    Likes Received:
    53
    Sorry to bother you...again,

    I tried putting this in regex

    <a.*?><img alt="Share" src="http://media.livenationinternational.com/Felix1/Images/Shared/button1-share.gif"></a>

    Should I put the first box as item.description as that image doesn't come up in the title, also should I check one of the boxes on the side?

    Thank you for helping :)
     
  9. nikhil88

    nikhil88 Regular Member

    Joined:
    Jun 12, 2008
    Messages:
    208
    Likes Received:
    97
    Occupation:
    E&TC Engineering Student
    Location:
    Pune,India
    yes put in item.description and check g and s
     
    • Thanks Thanks x 1
  10. macpaulos

    macpaulos Regular Member

    Joined:
    Oct 14, 2009
    Messages:
    295
    Likes Received:
    53
    Thanks for helping, unfortunately that didn't get rid of the share button.