• Hi,

    I have a database with images that match specific posts.

    I would like to display specific images after the first paragraph in the posts, but how do I do that?

    I know that I can add the code to each post manually, but I would prefer a more automatic approach.

    I would therefore like to somehow tell WP that it should execute a bit of PHP between the first and second paragraph in single.php. Problem is I have no idea how to do that ??

    Thanks, Mads

Viewing 1 replies (of 1 total)
  • I would love it if we could open this question back up. I’m having the exact same problem and I don’t know where to begin. I can’t find anything on google – probably because I don’t even know what to look up.

    I want to automatically insert a table in all my posts directly after the first paragraph. They do this at the NYtimes.com blogs. For an example, see:

    https://www.nytimes.com/2008/10/08/opinion/08wed2.html

    See how they put a small aside in the post after the first paragraph? That is so cool. I want to do that!

    I would appreciate any idea on how to do this.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP displaying image after first paragraph’ is closed to new replies.