Title: change global widget settings
Last modified: August 9, 2019

---

# change global widget settings

 *  Resolved [lightxservices](https://wordpress.org/support/users/lightxservices/)
 * (@lightxservices)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/change-global-widget-settings/)
 * hey everyone,
    i am creating a ajax pagination plugin for the woocommerce products
   widget, so when the user clicks the next page button, a request is sent to the
   backend and then queries the database for product posts:
 *     ```
       $loop = new WP_Query( $products_args );
   
       if ( $loop->have_posts() ) {
   
          echo "<ul class='products'>";
   
          while ( $loop->have_posts() ) : $loop->the_post();
   
               wc_get_template_part( 'content', 'product' );
   
           endwhile;
   
           echo "</ul>";
   
       }
       ```
   
 * then as you can see, prints the template part content product.
    but instead i
   would like to get a global widget i created with the right css and settings, 
   with the queried posts. i thought to output the shortcode of the global widget,
   but i don’t know how to change the query or posts inside.
 * thanks for the help.
    (in the attached link you can see at the suggested products
   above the price a pagination on the left side, test it and see what is happening
   to the products. i need them to be as they where at the first place)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchange-global-widget-settings%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [lightxservices](https://wordpress.org/support/users/lightxservices/)
 * (@lightxservices)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/change-global-widget-settings/#post-11820796)
 * i would really like to get some advice..
 *  [Lisa R](https://wordpress.org/support/users/lisaelementor/)
 * (@lisaelementor)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/change-global-widget-settings/#post-11898415)
 * Hi [@lightxservices](https://wordpress.org/support/users/lightxservices/)
    Please
   direct your code related questions to our repo. [https://github.com/elementor/elementor](https://github.com/elementor/elementor)

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

The topic ‘change global widget settings’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [global widget](https://wordpress.org/support/topic-tag/global-widget/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [Lisa R](https://wordpress.org/support/users/lisaelementor/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/change-global-widget-settings/#post-11898415)
 * Status: resolved