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

Way to incert HTML code into every post?

Discussion in 'Blogging' started by heartydreamer, Aug 22, 2011.

  1. heartydreamer

    heartydreamer Newbie

    Joined:
    Dec 8, 2009
    Messages:
    43
    Likes Received:
    23
    Hi BHatters, I would like to now if there is any way to randomly insert a html code into every post.

    Well the idea is, I would like to add posts automatically on my blog, of course using Wp-Robot.

    Now on every post, That does not have a picture, I would like to add a HTML Code that will return a picture, hyper-linked.

    I will place about 10 -20 pieces of HTML code that will return a picture, Hyperlinked.

    Is there a way to insert on of these randomly into the Wp-posts?

    I guess it makes sense. Please let me know if there is any ambiguity.

    Any ideas appreciated!
     
  2. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    You can use SQL queries. Try searching Google.
     
  3. heartydreamer

    heartydreamer Newbie

    Joined:
    Dec 8, 2009
    Messages:
    43
    Likes Received:
    23
    Thank you for the input. However, I was looking for a WP plugin kinda stuff to do the job.. This will make it easy.. Regarding SQL queries, I have no clue. Even if I search Google, I have no clue how to implement or fix if anythng pops up.. Cant we do that with a PHP scrit, that can be integrated as WP plugin?

    Howver, I am not a PHP guy either.. Was looking if there are any scripts to achieve this...
     
  4. CyberSEO

    CyberSEO Senior Member

    Joined:
    Jul 14, 2011
    Messages:
    939
    Likes Received:
    256
    Occupation:
    programmer
    Home Page:
    CyberSEO Lite autoblogging plugin does it easily.
     
    • Thanks Thanks x 1
  5. vinogradov

    vinogradov Junior Member

    Joined:
    Aug 29, 2010
    Messages:
    137
    Likes Received:
    34
    The the RAW HTML plugin, im not sure if that will do exactly what you want but its useful to have non the less.
     
  6. DebtFreeMe

    DebtFreeMe Regular Member

    Joined:
    Mar 14, 2010
    Messages:
    418
    Likes Received:
    363
    Occupation:
    Military
    Location:
    Earth
    You can actually do this in WP-Robot. If you go into the Templates area, look up the template for the type of post you want to put your code on, for instance the Amazon module template, you can drop the HTML code into that template.

    That way, every time WP-Robot posts anything from that template it will already include the HTML code you have.

    To add your code into your existing posts, what you could do is simply add your HTML into the the php files for your posts so they will show up on every post you put up. This would stop you from having to edit the WP-Robot templates.

    Or, I think what you may really find useful for existing post is a plugin called Append Content, this plugin lets you add text to the end of your existing posts, a process that's called appending. I'm not sure if it will work to drop HTML in, but it's better than nothing, and easier than SQL queries.

    Hope these ideas help you to get things taken care of.
     
  7. rpoelzl

    rpoelzl Newbie

    Joined:
    Aug 18, 2011
    Messages:
    1
    Likes Received:
    0
    I always use resource for HTML links....
     
  8. ijof9

    ijof9 Power Member

    Joined:
    Mar 27, 2010
    Messages:
    536
    Likes Received:
    594
    Occupation:
    CTO
    Location:
    Western Europe
    I use WP-Insert.
     
  9. Florist88

    Florist88 Newbie

    Joined:
    Jul 24, 2009
    Messages:
    43
    Likes Received:
    7
    You can manually add each link into the wordpress table (wp-posts) inside the database using the PhpAdmin front-end
     
  10. exoticgoddess

    exoticgoddess Newbie

    Joined:
    Dec 22, 2008
    Messages:
    11
    Likes Received:
    0
    Occupation:
    Independent Outsourcing Contractor
    very helpful thanks a lot for this