Forums

Quickest way to add some html to multiple posts ? (3 posts)

  1. 3ukman
    Member
    Posted 3 years ago #

    I have 400 posts and I like to add some html code to all of them.

    This is a hypothetical question , is there a plugin that facilitates that or what technique would you recommend ?

  2. greeenkaos
    Member
    Posted 3 years ago #

    If the posts are in only a few categories you could do a conditional statement with the template tag in_category (http://codex.wordpress.org/Template_Tags/in_category) in your single.php file.

    A much more tedious but workable way would be to do a conditional statement per post number, but it would probably be easier to do the above even if it means creating another category and assigning all those posts to it as an additional category (which you would only need to do if the posts are not already in just a handful of different cats).

    Not sure about plugins, could be one out there...

  3. nomatteus
    Member
    Posted 3 years ago #

    Are you looking to do this as a one-time thing, or do you want a block of HTML added to all your current AND future posts?

    This could be along the lines of what you're looking for:
    http://wordpress.org/extend/plugins/custom-post-text/

    This could also work too:
    http://wordpress.org/extend/plugins/add-post-footer/

    Matt

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.