I am not sure about the issue, but my advice would be to try and refactor this to use get_posts() and template tags that can work without $post global variable. Basically do not touch globals at all.
Loops in front-end are almost civilized nowadays, but internals of admin are still very wild. 🙂
Related Posts:
- Changing Admin Menu Labels
- Is there ANY way to remove comments function and section totally?
- Changing the ‘wp-admin’ URL to whatever I want
- How to display a static HTML page while setting up a WordPress site?
- How can I uninstall a language?
- Best way to present options for home page in admin?
- How to add a custom metabox to the Menu Management admin screen?
- How to make ajax call in wordpress in right way?
- Delete Post From front Page ( With Wp-admin restriction )
- Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]
- Add mass action to wp-admin/users.php
- Add a button to users.php
- Make sub menu items a main link in the admin menu using fuctions.php
- Can initial focus be set to search field in WordPress Media Library?
- When attempting to update a self-hosted WordPress site, I’m seeing “ASN1 unknown message digest algorithm”
- Color picker for posts and pages
- remove plugin admin menu in wordpress without installing plugin in v3.8.1
- How to create a wp admin page (for use in an ajax request)
- Removing user fields [duplicate]
- Creating WordPress Admin Themes
- Add “Page Revised” column to Admin
- Redirect users away from Admin breaks ajax
- SSL Partially breaking admin panel and elementor
- Only allow administrators and editors to access wp-admin
- I cannot log into my wordpress site with my wp-login.php [closed]
- How to change the label text in default setting pages?
- Form validation in WordPress Admin Panel
- XDG-OPEN is not recognized by WP CLI admin command
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- Where are the admin notifications stored?
- How to sort comments in the “edit-comments.php” table based on a comment meta field?
- I set wp_set_auth_cookie but wp_validate_auth_cookie returns false
- Why do I keep losing links when I switch to visual editor in WordPress
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- Woocommerce: Add column to ORDERS admin page with items purchased
- New wordpress install, what are the reasons the “Install Themes” tab is missing?
- Customise WordPress Update Notice in wp-admin backend area
- Post Bulk Update
- I get a 404 page on /wp-admin but not wp-login but as soon as I login I get a 404 again [closed]
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- password reset link being sent as HTTP?
- How to make the front-end RTL without changing the admin panel language?
- sort tags by tag ID in admin panel
- Restrict Author role to only 3 wp-admin pages
- Post.php is blocked by server? How to unblock? [closed]
- How to fix ‘WordPress redirection loop problem in wp-login.php page’?
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- Do I have to face security problems if I changing default role to Contributor
- wp-admin remove part of the url
- wp-admin 302 redirects
- WP admin user search doesn’t return all users
- Where are screen options when in admin on mobile?
- ‘wp’ hook supposed to trigger when editing a post?
- How do you force the wordpress dashboard to be 1 coulmn by default?
- always by default show welcome panel in the dashboard
- Migrated wordpress site give “Undefined variable: php” warnings
- I am unable to login into my wp-admin
- Is it possible to take over a WordPress site if the old administrator is MIA?
- Dashboard Widget CSS
- How can I prevent redirects from mysite/page to mysite/wp path/page?
- How can I prevent a function from loading in the admin screens?
- Move WooCommerce menu entries to top of dashboard
- WP Core hard coded to use http://www.w3.org/1999/xhtml not HTTPS
- 404 Admin Error
- Fix Admin Dashboard Posts tab
- Add a custom field when adding / editing a page / post in admin panel
- View all comments on post one click
- I can’t access my wp admin dashboard
- Should I move wp-admin to a separated server? How to do it?
- WP-Admin throws 404 after changing wp-config Salts
- How to create a new section on the wordpress admin dashboard?
- What event I can tap into that fires before loading wp-admin page?
- Weird white space in admin area
- How to logout the current user without notices and warnings?
- Updated to wordpress 5.5.1 doesn’t work
- How can I change block editors suggested links to display another url (i.e. from api.mysite to www.mysite)
- How to fix the view of admin all posts
- mixed contents admin panel is Unsecured
- Link with password is not sent to the new user
- How to change labels in the projects page
- How do I list subpages in post editor view?
- Remove View details option from plugin listing
- WordPress wp-admin login problem
- Failed to load resource: the server responded with a status of 431 ()
- Why does my edit screen suddenly have such a buggy interface?
- Disabling WP-Admin Caching in htaccess
- SSL doesn’t deliver parts of WordPress Administration Module
- WordPress admin option, I can’t use jquery ajax to access my content from another file
- Why WordPress not logout after I have close my browser?
- How to display product category’s individual product list in shop page?
- Images on admin backend not showing up
- WordPress br in content problem
- How to troubleshoot 404s in WordPress admin
- Launch wordpress site to local computer from live website backed-up
- How do I unset all of the select boxes for pages
- wp-admin won’t “remember me” in Chrome & Firefox
- Override WordPress Core File?
- WordPress Users page missing user count next to different types of users
- Is there a way to get the WP Admin Header to inject as the first element in the body instead of the last?
- Creating an custom admin page from scratch