Adding Snippets to existing posts

I am wondering if its possible to add Snippets to existing posts (i.e. the posts already published) in bulk?
I would like to add a snippet to atleast 200 posts at say, a defined location (after 2nd paragraph).

Is this possible?

You’d need some custom code that uses the Ghost API. Basically, get the post content, edit it to include your new content, then update the post with the edited content.

Alternately, you could use a bit of javascript (added in code injection) to insert something after the second paragraph of each post.

1 Like