-
IMO It is rarely a good idea to evaluate shortcodes outside of the specific post page as too many times you need the context for either the evaluation itself or styling.
-
Your problem is most likely related to the use of
the_post
andwp_reset_postdata
. What is exactly the post being reset to in that case? A thumb rule, as long as you can avoid it, use explicit post ID parameters in function calls and try to avoid any assumption about which globals are being set to what. Unfortunately, some core api just do not work without the globals being set, and if you need to use them than you need need to find out whatwp_reset_postdata
does and maybe setup the “original” post data in a different way.
Related Posts:
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Delete Post With No Traffic?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- Publish Post After Click On A Link
- Is there a plugin to display certain posts on certain pages? [closed]
- plugin for wp_list_categories with posts
- Replace existing pages with new pages, keep menu links
- Use plugin or custom post type for game score functionality
- Output HTML only on individual post view
- View Private Published Page with URL Code (no login required)
- Outbound link autometic converted into linkdirect , and not opening
- Add category selection to custom post type (plugin)
- Redirect to another page using contact form 7? [closed]
- Moving FB comments at the end of page
- I want to filter my products with attributes [closed]
- How can i summerize posts or news automatically in word press site?
- Delete data from custom table when deleting a post
- Plugin for TinyMCE to create reference to other posts
- Link Posts to External URL
- help intercepting save_post through plugin
- Why the internal link get converted into a comment?
- Oops! That page can’t be found
- Share on social media created listing after submission
- Style WordPress Custom Post Type Single Page
- How to maintain WordPress permalink structure with custom content with URL parameters?
- Posts are deleted everyday at night
- Issues with Post 2 Post Plugin
- Get page type to display content
- Looking for membership style plugin with edit option [closed]
- Getting 400 Error in wordpress website
- How to get selected variation from URL?
- How to show custom post type in all post section?
- Adding Attachment Display Settings in custom media frame
- How to check what plugins used to be on a WordPress installation?
- wordpress.org codebase
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- Can a plugin deactivate and delete itself once installed and activated?
- Using the “Latest posts” feature on a different site
- Creating Search Engine Friendly URL’s with Word Press
- Manually add order item with fixed product_id in WooCommerce
- FacetWP group listings by custom field [closed]
- How to modify shortcode attributes with data from current post
- ‘Customize’ button in admin bar for CSS
- Post query – show posts from specified day and month and whole years
- Auto delete WordPress users according to time
- Is there a way to order posts and custom post types as one group?
- Plugin Customization Lost During Plugin Upgates
- Execute a plugin only on post pages
- How can i list random post from multiple category?
- Support for simultaneous editing
- How to import my YouTube channel into WordPress?
- How to get 1 or 2 specific posts on top of my wordpress blog?
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Portfolio + Blog: multisite or plugin?
- Custom Field Template seriously messed up in WP 3.1.1
- My Category is too big on the Menu what can i do?
- how to load the language file in plugin?
- Plugin upgrade issue
- How do I add a custom sub menu menu under Woo-commerce marketing?
- Changed permalink structure. Need help with redirecting old posts
- Change permalink structure hidden button edit
- How to use get_theme_mod in gutenberg editor wordpress?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- Accessing post’s meta data based on user’s click of a post
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- How can I capture Memberpress user info after signup [closed]
- My plugin wants to update another plugin
- I have no idea “How change font for elements in widget?”
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- JS Support Ticket – Auto create WP account
- How to show Recent Page instead of Post?
- Load custom PHP on a custom URL via a plugin
- Remove Duplicator plugin from admin menu if not an administrator
- How to change custom post type pemalink Hierarcy
- The problem with WordPress Importer
- Input with spaces in Shortcode attributes overwritten by defaults
- Cron job not firing
- Solutions to repost categories into multisite blogs?
- How to enable qTranslate languages tabs in custom plugin page
- How do I “get the next 10 posts after post_id == x”?
- Hiding posts – WP Hide Post not working
- Add a custom form on the post-new.php admin page
- Removing customise fields during plugin uninstallation
- resetting permalinks after changing page names
- Edit Yoast SEO breadcrumbs output [closed]
- What’s the best way to implement AJAX in WordPress?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- Translating long texts with html formatting
- submit posts by unregistered users in wordpress
- Calendar Solution: Handling upcoming Dates with Posts?
- get_post_type on post.php
- Is there an easy way to flag posts in the admin area?
- How would I go about creating a user ranked post popularity page?
- Plugin appends ugly URL string to index
- finding whether request is for post, and post id
- Anonymous Postings
- Do widget options need to be escaped widget()?