WordPress.org

Ready to get started?Download WordPress

Forums

Automatically insert table after 1st paragraph in post? (2 posts)

  1. ccsm
    Member
    Posted 5 years ago #

    I want to automatically insert a table after the first paragraph of each of my posts.

    I see this effect on lots of websites, but I just can't figure out how they do it. Here are some examples:

    http://www.nytimes.com/2008/10/11/opinion/11herbert.html
    - note author picture after 1st paragraph

    http://musicians.about.com/od/musicindustrybasics/a/demodonts.htm
    - note "sponsored links" block

    http://news.yahoo.com/s/ap/20081010/ap_on_fe_st/as_odd_cambodia_unique_divorce
    - note advertisment after 1st paragraph

    I believe this effect is also used in some form in the "Adsense Injection" plugin.

    I imagine this might have something to do with search and replace, or perhaps a 'p:first child' effect, or (more likely) something I haven't thought of.

    Many thanks - Dave

  2. aptdesignonline
    Member
    Posted 5 years ago #

    Dave,

    This post is kinda old, so maybe you already found a fix.

    Here is a plugin that looks like it might do what you want. Haven't tried it yet, but the comments look good.

    http://www.jenst.se/2007/12/03/wp-limit-posts-automatically/

Topic Closed

This topic has been closed to new replies.

About this Topic