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

need wordpress after post plugin

Discussion in 'Blogging' started by Faiz Muhammad, Dec 4, 2011.

  1. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
    hi i m looking for a plugin which can provide me a box in which i can put html code and when ever some one view a single post than my added html code show there after each post , is there any plugin which can do so plase suggest me one if you know.
     
    • Thanks Thanks x 1
  2. Russ1395

    Russ1395 Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2010
    Messages:
    128
    Likes Received:
    108
    Home Page:
    Just click the html tab when you're adding a post and paste the html code below whatever content you have above it.
     
  3. newmoney

    newmoney Junior Member

    Joined:
    Dec 3, 2008
    Messages:
    168
    Likes Received:
    22
    He must already know how to do that.

    I think he is looking for a way to automatically set html content/shortcodes to show on all posts, and update all posts by only editing it from one place instead of going through each post. Imagine if you had 100's of posts.

    Also if you are automating the posts publishing - a plugin like that can help you to automatically place your shortcodes/html inside the posts without doing it manually. It might even be possible to add the html/short codes to the theme so that it posts along with the content.

    I could be wrong but, maybe you could clarify OP.
     
    Last edited: Dec 5, 2011
  4. thedelimiter

    thedelimiter Newbie

    Joined:
    Nov 11, 2011
    Messages:
    16
    Likes Received:
    8
    Location:
    Chicago
    Home Page:
    Code below only adds the extra html to new posts.

    If you don't want this extra html stored in the database, but instead only printed to screen, you should use 'the_content' filter, instead of 'content_save_pre'

    To use, edit where it says 'Here is your Html', save it to a php file named add_post_content.php, put it in the plugin folder, then activate it.

    Code:
    <?php
    /*
    Plugin Name: Add Post Content
    Plugin URI: Icantpostlinks
    Description: Simplest Plugin EVAR
    Author: Mark Fuckerberg
    Version: 1.0
    Author URI: Icantpostlinks
    */
    
    
    function add_post_html($content)
    {
    	return $content . '<h2>Here is Your Html</h2>';
    }
    add_filter('content_save_pre', 'add_post_html');
    
    
    ?>
     
    • Thanks Thanks x 1
    Last edited: Dec 5, 2011
  5. joeyblogz

    joeyblogz Registered Member

    Joined:
    Feb 18, 2011
    Messages:
    56
    Likes Received:
    59
    Occupation:
    Web consultant
    Location:
    bucktown
    There's a WordPress plugin called "post ender" which does this.
     
    • Thanks Thanks x 1
  6. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
    newmoney told exactly what i want to say
    i m not a programmer or a php expert , i will try the post ender as suggest by joeyblogz
     
  7. clau82

    clau82 Junior Member

    Joined:
    Aug 9, 2009
    Messages:
    158
    Likes Received:
    23
    I'm using "post footer" plugin, I like it a lot
     
    • Thanks Thanks x 1
  8. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
    quick adsene is another one which do same i found , i dont put adds at those postion istead of adsene i put my html code it work cool
     
  9. momba12

    momba12 Junior Member

    Joined:
    Apr 7, 2011
    Messages:
    122
    Likes Received:
    30
    I used "post layout" and "header footer" plugins for automatically adding code, content, ads what not to every post or page. Ideal solution for ABers.
     
  10. newmoney

    newmoney Junior Member

    Joined:
    Dec 3, 2008
    Messages:
    168
    Likes Received:
    22
    Thanked and rep+ for this useful code.

    But will it accept shortcodes here instead of html
    "add_filter('content_save_pre', '[Add_Shortcode]');"



     
    Last edited: Dec 6, 2011