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 get an array of post data from wp_query result?
- How to only display posts whose meta_value field is not empty?
- How to print the excuted sql right after its execution
- How to add taxonomy filter on the query fly?
- post_type is ignored by WP_Query when ‘tag’ argument is included
- How to query posts of standard post format. For real
- Orderby menu_order doesn’t work
- WP_Query by Category Name
- WP_Query OR clause for tax_query and keywords
- Transient pagination not working properly
- query posts in functions.php and update a field
- get_posts() seemingly ignoring post_type
- If orderby parameter using pre_get_posts is the same for multiple posts what fallback does the query use?
- Which filter/action hook gets triggered after a query has been performed?
- Why query_vars get altered in WP_Query Object?
- pre_get_posts filter meta_query without conflicting existing meta_query
- Get data of all posts of a query before pagination
- How to avoid wp_query returning the same post I’m on in results?
- Custom query for sidebar isn’t returning results
- WordPress Loop and $post
- How can I create ‘future’ and ‘past’ parameter for restAPI by filtering the CPT custom date field by greater than / less than current datetime?
- WP_Query tax query part of slug
- How to implement a new row_count method in WordPress?
- Some doubts about how the main query and the custom query works in this custom theme?
- How to do a wp_query with two acf-fields, sorting on one of them
- Using Advanced Custom Field for file upload, how do I load the file url
- Shortcode for latest -not expired- posts
- WP_Query – Object manipulation vs WordPress functions
- Only display post if published in last 24 hours?
- Transients with dynamic WP_Query
- How to remove the most recent post from $the_query
- WP_Query loop else statement not executing
- Modify Search Query if original Query gave no results
- How to cache wp_query with pagination using transients?
- Selecting posts with a given meta value for a meta key
- pre_get_posts – editing query, tax_query
- Check if a post has term inside loop
- Display all posts in a custom post type, grouped by a custom taxonomy. How to sort the posts alphabetically and the terms by ID?
- How do I add a relation parameter to my filter query?
- Hacking ‘posts_per_page’ in WP_Query
- Post archive for certain post format
- Issue with data array format
- Add AJAX “Load more” on custom query block
- Filter sub-category from checkbox form
- Meta Box WP_Query array for showing items with a certain relationship
- Multi-layered WP_Query
- `offset` WP_Query argument dont work via `pre_get_posts`
- Function the_posts_pagination() not compatible with WP_Query arguments
- Pagination of custom page with custom fields query
- WP_Query() not filtering posts for category
- WP_User_Query Orderby Not Working
- WordPress post_status and meta_query
- Custom query: post__in parameter causes query to be empty
- Custom query return
- WP_Query: Meta_Query with serialized value (or a workaround)
- Query All Attachments and Order by Parent Publish Date
- WP_Query using meta_query with LIKE doesn’t return what it should
- Filter custom post type by custom taxomony
- Query post Pagination Problem
- Pull Instagram images into an existing loop?
- Query_vars not working for me
- Pagination showing same posts despite changing page
- Query custom post types by meta field in a term from custom taxonomy
- Filtering product search results using tags
- Display only posts with thumbnails