You are stomping on the global wordpress posts with your plugin.
Doing your wp_query call and then calling
$recent_articles_wtb->the_post();
means that later (after your loop), you will want to call
wp_reset_postdata(); # Thanks Milo
That should reset the global $current_post and $post objects.
Related Posts:
- How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?
- Most commented last 24h, week, month, year and all time – posts_where
- WP_Comment_Query pagination, delving into the unknown
- Exclude comments from a WP_Query object?
- Get posts with condition on comment meta value
- WP_Query sort by comment meta data
- Get number of comments after modifying comment query
- using wp_query to return posts w/ comment count > 0
- Pass the same object to multiple widgets in a template with one query
- How can i make WP_Query return post image and categories?
- Query posts with more than 20 comments
- How can I retrieve comments from last 5 minutes for a post?
- Retrieving list of a custom post type in a widget without using WP_Query?
- Sorting posts DESC based on the number of comments using WP_Query
- How to detect if query is runned from widget?
- Most commented post showing 2 records
- WordPress Comments sort by custom meta key
- Show post number in widget loop
- Query posts by last comments
- How to list posts with disabled/closed comments, with pagination?
- Error with function in functions.php?
- I need help using pre_get_comments to limit comments in the comments admin screen
- How to create a widget like this?
- Widget only in first post
- How to add a recent post function to a text widget I created for practice?
- Widgets: Show Recent Posts Only if the Posts Have Both Categories X and Y
- prevent get_comments() from returning comments not in comment__in
- Is it possible to give a classname to specific comments in the WordPress admin?
- How to get_comments() ordered by date and parent?
- How can I show only last year posts in wordpress archive?
- wp_query in form method of widget breaks customizer
- Comments orderby comment date not working
- How to display comments list by order when clicking on newest or oldest link?
- Get comment number by date range?
- Wp_query to get woocomerce product categorys [closed]
- How to delete widget in WordPress?
- Child Comments not showing in `wp_comment_query`
- How can I comment comma-separated array values?
- Display all posts in a custom post type, grouped by a custom taxonomy. How to sort the posts alphabetically and the terms by ID?
- WP_Query by keyword OR post tag
- Custom query filter by ACF date custom field
- Grabbing taxonomy terms and inserting them into an array
- WP_Query returns no posts for category
- How do I add a relation parameter to my filter query?
- Order WP_Query results by meta key value in custom query
- Need to know custom code to display random and most viewed posts in wordpress posts and pages
- construct complex queries with WP User Query
- Need help understanding this WP Query [closed]
- Searching by title, content and custom taxonomy
- How do I fit WP_Query arguments into a function?
- Create a notification for post field
- Storing an array of objects related to each user
- Create one-use post dynamically, add to main query, do not insert post (user profile view)
- Using a Shortcode to List Posts from Multiple Categories
- How to display a list of posts in same child category as current post
- WP_Query to get post on frontpage
- Does WP_Query ‘responds’ badly to empty arguments?
- querying posts with a custom status
- When listing child pages run out of memory
- How can I update post meta inside a WP_Query loop or the WordPress loop?
- Query by date from custom field
- problem with loop
- Printing a variable inside a custom WP_Query
- WP_Query->request has a limit
- Notice thrown when creating numeric pagination on custom query
- and tag not working
- Slider won’t work with custom query
- Remove post type filter added by the plugin in the final query
- How to get more data of a post by wp_query
- WPQuery calling specific posts problem
- var_dump of WP_Query object is not empty, while .have_posts() return false
- Retrieve data from wordpress db via input and put those result in dropdown
- wordpress udpate query not equal to
- How to generate feed for custom template
- How do I sort this custom list of sticky posts
- WP_Query with one category in args shows other categories
- WP Query – filtering terms with regex
- Excluding posts with certain value of meta_key keeping posts without that meta_key
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Query only displays one page_id
- How to exclude a category name from showing?
- Pagination in html table is not working
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- Content not displaying on paginated page
- WP Query and date format
- query post by author gender
- How to Order By Two Custom Fields?
- Loop categories by recent post
- How order posts from category by date and comment count?
- Display specific page (that is child) content on parent page
- Why do I have to use pre_get_posts with custom WP_Query to reset posts_per_page?
- Nested array issue in meta_query
- Different Loop for tag pages?
- Get a list of ACF Repeater-Fields as array
- How to get post category list as select in front-end?
- query_vars empty when using custom url with custom rewrite rule
- custom page with post content using read more
- Link Author URL’s based on a custom field
- Hacking ‘posts_per_page’ in WP_Query
- embedding shortcodes in php template