Home › Forums › Support › Elements as shortcode inserting between paragraphs of post This topic has 5 replies, 3 voices, and was last updated 4 years, 4 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts July 9, 2018 at 11:30 pm #619872 Anil Hi I am loving Elements in GP 1.7-beta.1 I am using elements with hooks to display ads at various locations. I want to insert ads in between paragraphs of posts as per my need. Can I use these elements as shortcodes to insert ads code in posts? Or suggest best way to insert ads code between paragraphs of posts. Regards. July 10, 2018 at 2:52 am #620001 DavidStaff Customer Support Hi there, glad to hear your enjoying 1.7, it really is something special and remarkably will only get better 🙂 Elements doesn’t create shortcodes. I would assume you currently have a shortcode or a script for adding the adverts? To automate adding adverts you would need to use a Filter on the the_content. Here is an article on that if you’re interested in understanding how. https://keesiemeijer.wordpress.com/2016/09/27/add-content-between-html-paragraphs-in-wordpress-posts/ December 4, 2019 at 11:01 pm #1094064 RafaÅ‚ Hi! Nothing more convenient in the topic? There’s no possibility to use Elements’ Hook as a shortcode? December 5, 2019 at 2:35 am #1094237 DavidStaff Customer Support Hi there, closest thing to it is in this topic: https://generatepress.com/forums/topic/hook/#post-1036765 December 5, 2019 at 9:17 am #1094806 RafaÅ‚ David, thanks for your answer. December 5, 2019 at 9:54 am #1094865 DavidStaff Customer Support You’re welcome Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In