You can get the post id outside the loop with $wp_query and then feed it to tribe_is_event(). works a treat.
<?php
global $wp_query;
if (tribe_is_event($wp_query->post->ID)) {echo "yup"; } else {echo "nah"; }
?>
Related Posts:
- Can I make plugins required?
- wp_enqueue_scripts not working in custom theme
- What is the correct way for a theme to support plugin UIs?
- Automatically install wordpress plugin at theme activation
- When coding a WordPress theme, where does the theme (i.e. the presentation) end and the plugin (i.e. the functionality) begin?
- How to call “page specific menu items” in template [closed]
- Create WooCommerce Product Category Programmatically
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- WordPress tips for speed and performance [closed]
- How to access options of Redux framework in front end
- Update Multiple Post Meta for the Same Post In One call?
- Integrating plugins in themes
- login to wordpress with Get variables instead of Post
- How to load a new template page according to a particular URL?
- Should I use RIPS tool to test my themes and plugins?
- Translate third party plugin and save translation files in custom theme
- Code in theme functions.php faster than with a plugin?
- How do I future proof my older WordPress theme?
- register_theme_directory somehow “fails” when folder is outside of WP-Folder
- Display future posts?
- Having separate plugins and themes folder for multi-site setup
- Date in the URL with The Events Calendar
- gallery option is not available in media upload box in costum theme option page
- Why are some of my thumbnails not being generated?
- Built in audio player?
- How to retrieve custom meta term of category taxonomy from WP Rest API?
- Network: retrieve a list of latest posts
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to use get_theme_mod in gutenberg editor wordpress?
- How to stop or remove an action being called inside a function of an extended class
- wp_get_post_terms is difference obj model than the one in rest api response
- how to add a button next to the wordpress view button?
- Best place for short bio,image and button [closed]
- add custom filters to the event calendar plugin programatically to frontend [closed]
- What are the specifics of WordPress development I need to know? [closed]
- WordPress shows error related to allow_url_fopen
- How to create a code editor for my plugin .?
- How to show only next post pagination link using wp_link_pages()
- wp_footer hook only working on homepage not in other pages
- Plugin can not display in my custom theme
- How to use get_template part in the plugin?
- Overriding Parent Theme… will cause plugins failure?
- WordPress premium theme development [duplicate]
- How can I show a different theme for admin users? WP 3.8+
- How to show the number of website visitors in my theme
- How to write “alt” tag in image for wordpress code?
- Shortcode Attributes to Return different $_POST
- What form should the $query media query array have for an Elementor page builder function? [closed]
- is_rtl returns false while it should return true
- Include Minit plugin in theme [closed]
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- WordPress custom post type image in RSS
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Extending a theme: build new features as plugin or core modules?
- Remember the Meta Value With Radio Buttons
- display unique post per category
- Theme Functions run a function upon activation or preview
- Polldaddy doesn’t show up on own theme
- How to add an admin alert for missing plugins
- Is there a way to insert multiple images into a post at the same time without using a gallery?
- Is there a way to keep youtube videos from displaying on home page, and display only on single posts?
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Janrain/Simple Modal under Redirected Domain
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- Seperate plugin and theme files
- require_once not working in plugin wordpress
- how to display recent post by category on home page
- Unpublished Pages Failing To Appear On Custom Path
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- How can I find related learndash course id from woocommerce product object?
- How to get a post views count using ‘WordPress popular posts’ plugin
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Disqus comment system not show
- Remove action added in plugin class from theme
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Product catalogue in WordPress
- Contact form function should be in functions.php or in a plugin file?
- how to add custom css at top above all css file for specific url
- How to add wordpress plugins in along with my standalone theme
- Showing ads in the specific category and its sub-categories
- How to set up year view for datepicker in The Events Calendar plugin?
- How can I add different menus (different style menu) on each page?
- Site is setup statically – how to make it content managable?
- How can I make a website with dynamic features with wordpress?
- How to create post comparison in wordpress
- Open graph issue on my theme
- Javascript as Jquery Function Call?
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to escape html code?
- manage_{taxonomy}_custom_column not working
- Is website for online game guides doable in WordPress? [closed]
- Best approach to change mobile background image and adding its class
- Frontend Enqueued Files in the Backend
- How to create new title and its description inside a section in WP Customizer?
- I want to move the one click accesbility button on bottom of my website screen,
- Automatically install bundled plugins during theme activation?