Title: error in switching posts list dynamically
Last modified: November 8, 2022

---

# error in switching posts list dynamically

 *  Resolved [sproutchris](https://wordpress.org/support/users/sproutchris/)
 * (@sproutchris)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-switching-posts-list-dynamically/)
 * Shortlink code being used:
 * `[netsposts use_layout='inline' exclude_blog='1' paginate='true' load_posts_dynamically
   ='true' list='6']`
 * When I click on a pagination link, it just spins and gets stuck. The javascript
   console throws this:
 *     ```
       Uncaught (in promise) TypeError: Cannot read properties of null (reading 'setAttribute')
           at setWrapperId (netsposts-public.js?ver=1.0.2:13:17)
           at netsposts-public.js?ver=1.0.2:58:46
       ```
   
 * Using plugin version 7.6.4 on WordPress 6.1.

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

 *  Plugin Author [johnzenausa](https://wordpress.org/support/users/johnzenausa/)
 * (@johnzenausa)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-switching-posts-list-dynamically/#post-16175682)
 * You need to assign the list an ID. So add the following parameter to the shortcode.
 * `shortcode_id='custom_id_name'`
 * You may replace custom_id_name with any name you like. Just make sure it is unique
   to that page. Remember the difference between id’s and classes is there may only
   be one per page.
 *  Thread Starter [sproutchris](https://wordpress.org/support/users/sproutchris/)
 * (@sproutchris)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-switching-posts-list-dynamically/#post-16178364)
 * That worked. Thanks, [@johnzenausa](https://wordpress.org/support/users/johnzenausa/)!

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

The topic ‘error in switching posts list dynamically’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/network-posts-extended_b4775d.svg)
 * [Network Posts Extended](https://wordpress.org/plugins/network-posts-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/network-posts-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/network-posts-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/network-posts-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/network-posts-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/network-posts-extended/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [sproutchris](https://wordpress.org/support/users/sproutchris/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-switching-posts-list-dynamically/#post-16178364)
 * Status: resolved