Themify Event Post Shortcode

Below, you’ll find a detailed guide on how to add the Themify Event Post Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Themify Event Post Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Themify Event Post Plugin and the shortcodes it provides:

Plugin Icon
Themify Event Post

"Themify Event Post is a dynamic WordPress plugin that allows you to create, manage, and showcase events on your website with ease and style."

★★★★★ (2) Active Installs: 3000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [themify_event_post]

Themify Event Post [themify_event_post] Shortcode

The Themify Event Post shortcode is a powerful tool that triggers a specific function within the plugin. This shortcode activates a template within the plugin, allowing for the display of event posts. It switches on the ‘is_shortcode’ status, includes the ‘shortcode’ template, then turns the status off. It’s a neat, compact way to showcase event-related content.

Shortcode: [themify_event_post]

Examples and Usage

Basic example – Displaying a Themify event post using its ID.

[themify_event_post id=1 /]

Advanced examples

Displaying a Themify event post using its ID and specifying the layout. The layout parameter allows you to choose the style in which the event post will be displayed.

[themify_event_post id=1 layout='grid' /]

Displaying a Themify event post using its ID, specifying the layout and limiting the content length. The content_length parameter allows you to limit the number of words displayed in the post content.

[themify_event_post id=1 layout='grid' content_length='100' /]

Displaying multiple Themify event posts using their IDs and specifying the layout. You can display multiple posts by separating the IDs with commas.

[themify_event_post id='1,2,3' layout='list' /]

PHP Function Code

In case you have difficulties debugging what causing issues with [themify_event_post] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'themify_event_post', array( $this, 'shortcode' ) );

Shortcode PHP function:

                    function shortcode( $atts = array(), $content = '', $code = '' ) {
		self::$is_shortcode = true;
		$output = include $this->locate_template( 'shortcode' );
		self::$is_shortcode = false;
		return $output;

Code file location:



Now that you’ve learned how to embed the Themify Event Post Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.


Leave a Reply

Your email address will not be published. Required fields are marked *