It solved well when I added:
wp_reset_query();
After closing the while
Related Posts:
- How to create a custom shortcode based on the layout?
- Redirect to another page using contact form 7? [closed]
- How to add a shortcode button to the TinyMCE editor?
- Custom media upload content for inserting custom post shortcode
- Creating two database tables via plugin
- Checking if an attribute exists in a shortcode
- Query Posts by Custom Field ‘Price’
- enqueue script only if it is not already enqueue
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- How To Ignore a Filter On Applying Filter the Content In a Function
- Shortcode display outside the div
- Pass $this to function nested in another public function of the same class
- shortcode doesn’t work
- How to add inline css/js inside a shortcode
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- How use %like% in sql statement wordpress
- Accessing GET variable named ‘error’
- WP_Query ordering numbers as letters
- Demystifying and understanding shortcode nomenclature
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Input with spaces in Shortcode attributes overwritten by defaults
- Allow users of my plugin to define their own shortcode rather than use mine?
- switched from query_posts to WP_query, not working now?
- AJAX search posts and pages
- Making a Template for a CPT created by a plugin
- creating html reusable blocks via shortcodes
- Single API call exposed via shortcode with params
- Insert content of a post into another
- how to use in custom single.php template using php?
- Creating shortcodes in plugin
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Create shortcode to echo javascript
- Namespaced shortcode?
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- Why am I unable to load scripts in head in plugin?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Return multiple values in a shortcode attribute
- IF condition based on wp_remote_get output
- Shortcode Attributes to Return different $_POST
- How to use template inside plugin shortcode with variables for big HTML code
- strange shortcode error: does shortcodes requires any dependency?
- Loop returns the current page’s permalink and guid instead of the post in the loop
- How to rewrite URL and get the values?
- Delete data from custom table when deleting a post
- How to Join wp_posts & wp_postmeta table using custom query
- Thumbnail image doesn’t show up in Shortcode output
- list of custom post by custom field in frontend
- Shortcode do not return the right data in post
- How to call function in WordPress on button click?
- Hide content for specific users with id
- adding dynamic/multiple slug values in ‘option_none_value’
- Why is my shortcode not working?
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- How to pass multiple custom fields as shortcode’s parameters
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- How to use information from the database in the front-end?
- WP Plugin CSS not being applied to page
- Modify Plugin PHP Class in Child Theme – Correct Method
- How to insert variable which contain array value in wp_options table?
- shortcode which is introduced into entry the blog, and appears in side bar
- Why function hooked using object are executing at all time?
- Shortcode registered from a plugin not recognized
- WP-Snap too slow (caused by WP_Query?)
- WordPress Meta Query: Relation is not working correctly
- Making a Custom Post Type Publish Loop
- Checking url from plugin [duplicate]
- Any way to hook into WP after a page displays?
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- Accessing Correct Database to Create REST API Endpoint
- Display file contents within Plugin
- How to implement WordPress plugin update that modifies the database?
- Customize plugin update “new version is available” text
- How to handel multiple checkbox field in the admin settings page with Settings API
- Loading shortcode with ajax
- How to load a new template page according to a particular URL?
- Nested shortcodes
- How to add an attribute to the body tag with a plugin?
- Override the core function locate_template
- Trying to count the total number of paragraphs inside a blog article
- How to Create a Custom Plugin Permalink
- How would I go about creating a user ranked post popularity page?
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- How to get all posts belongs to a user between a certain date
- wp-load.php redeclares classes
- Where should custom post types be registered in a plugin?
- plugin uninstall function drop the tables, but shows errors on admin
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Make get_permalink() work outside the Loop using filters
- Does WordPress do any internal caching if no plugin installed?
- WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div
- How can i solve php upgrade problem
- Create multiple posts when a custom post is created
- how override a define
- submit form data to wordpress existing database table using my plugin
- Get content and send to 3rd party
- Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?
- What is the Object for WP_Error Class?
- cURL External API request displays content above other content on page
- How to give specific class name to category in wordpress with code snippets