-
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
- Difference between add_filter and apply_filters
- How to work with Syntax Highlighter Evolved?
- User-Specific Timezones? Hack? Plugin?
- Open external links in a new window
- jQuery plugin only in one page/post
- How to add usermeta to “Notice of Email Change” email message
- Change Permalinks Structure to a Sequential Number for Each Post?
- How do I customize my WordPress shortlink structure in link-template.php without a plugin?
- REST-API: extend media-endpoint
- How to make sexy bookmarks plugin work in WPMU
- register_post_status invisible but searchable
- How to get the permalink of a page when loading my plugin
- Can’t create term for product attribute
- WordPress and WebRTC?
- Rewrite url without flushing the database?
- Adding Attachment Display Settings in custom media frame
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Custom Field Template seriously messed up in WP 3.1.1
- My plugin wants to update another plugin
- I have no idea “How change font for elements in widget?”
- Move first half of posts to one parent page, second half to the other page
- Display encrypted content on my website
- Remove /product/ from url. I want only category name then product name
- How do I make a child theme I made POST through a 3rd party plugin?
- Perform internal redirect in WordPress?
- Filtering get_permalink in Jetpack / ShareDaddy
- How to get the permanent link in a plugin?
- “No Add Button” for me to customize my WordPress with themes and pluggins
- Translation plugin to translate another plugins
- wordpress content .php file in an iframe’s src in a wordpress post
- Customizing Titles on the Fly with Code
- Text change in Advanced Customs Fields [closed]
- Loop in elementor custom widget not working
- .php file for woocommerce edit category? [closed]
- Function added to hook “new_to_publish” not executing – custom plugin
- Creating an admin meta box to save post as pending
- How to display an alert when deleting a plugin?
- 404 errors when updating options in admin dashboard
- Display WordPress comments before the plugins?
- Mobilepress fails to translate short codes
- Getting infinite scrolling working on my custom template
- Display posts by alphabetical order
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- WordPress Frontend Page using Plugin
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- Precheck fields when I add a new post
- Trying to add a new feature in my wordpress website
- automatically set random featured image by category in wordpress on post
- Custom wp_list_tables redirect on specfic page
- Paid Membership Pro displaying a user name in PHP
- Members-only page, but accessible via sharable link
- Automatically check “Enable stock management at product level” to the existing products?
- How to add add blank non-editable wp page like default blog for use with plugin
- Creating Nested custom fields
- Add new post using a page inside the website
- Plugin does not create a custom table upon activation
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Plugin program: JQuery not working in this plugin
- Find And Add Category to Posts
- admin panel save option with ajax
- 404 not found problem with URL rewrite custom category
- Adding Category in URL in some post
- Social network plugins for WordPress [closed]
- Windows 10 Printer that Sends to WordPress [closed]
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Wrapping code in an if block
- Using ACF to allow user to add and edit multiple saved forms