• Resolved sproutchris

    (@sproutchris)


    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

    (@johnzenausa)

    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

    (@sproutchris)

    That worked. Thanks, @johnzenausa!

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

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