Title: How to insert inside multiple html elements?
Last modified: July 10, 2022

---

# How to insert inside multiple html elements?

 *  Resolved [brvnbld](https://wordpress.org/support/users/brvnbld/)
 * (@brvnbld)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-inside-multiple-html-elements/)
 * I have pagelist plugin in my website, I want a block on the pagelist’s 1st element,
   2nd block on the 2nd element, etc., How do I do that?
    Also, in the tag page,
   I need to add blocks inside each of them, each block.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-inside-multiple-html-elements/#post-15812867)
 * You need to configure HTML element selector(s) for each block:
    [https://adinserter.pro/documentation/insertion-before-inside-after-html-element](https://adinserter.pro/documentation/insertion-before-inside-after-html-element)
 * Use automatic insertion wherever possible:
    [https://adinserter.pro/documentation/automatic-insertion](https://adinserter.pro/documentation/automatic-insertion)
 * You can check which insertion positions your theme supports:
    [https://adinserter.pro/documentation/debugging](https://adinserter.pro/documentation/debugging)
 *  Thread Starter [brvnbld](https://wordpress.org/support/users/brvnbld/)
 * (@brvnbld)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-inside-multiple-html-elements/#post-15812958)
 * .page-list-ext-title this is the element I want to append to show after html 
   element , but for all the elements this is the same selector. How do I insert
   one block after the first element, next block in the next element.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-inside-multiple-html-elements/#post-15812965)
 * For client-side insertion you could use this selector
    `.page-list-ext-title:
   eq(n)` [https://api.jquery.com/eq-selector/](https://api.jquery.com/eq-selector/)
 * A far better approach is using server-side insertion (needs Output buffering 
   enabled) with `.page-list-ext-title` and then use **Filter** to select wanted
   insertions:
    [https://adinserter.pro/documentation/additional-block-settings#filter](https://adinserter.pro/documentation/additional-block-settings#filter)
 *  Thread Starter [brvnbld](https://wordpress.org/support/users/brvnbld/)
 * (@brvnbld)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-inside-multiple-html-elements/#post-15819136)
 * Wow, It worked amazingly , Your plugin is undoubtedly the number one in ads and
   code insertion.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-inside-multiple-html-elements/#post-15819141)
 * 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to insert inside multiple html elements?’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

## Tags

 * [div](https://wordpress.org/support/topic-tag/div/)

 * 5 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-inside-multiple-html-elements/#post-15819141)
 * Status: resolved