The Codex page for is_plugin_active
explains what your problem is:
NOTE: defined in wp-admin/includes/plugin.php, so this is only available from within the admin pages. If you want to use this function from within a template, you will need to manually require plugin.php, like this:
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); ?>
<?php is_plugin_active($plugin) ?>
Related Posts:
- Custom Shortcodes Giving error on development site
- How to set Contact Form 7 fields default value using shortcode attribute? [closed]
- Enumeration Contact form using database table’s numbe of rows [closed]
- Add the last viewed post title to a contactform with shortcode [closed]
- call other shortcode in the email contactform7 send [closed]
- contact form 7 :create shortcode usable in email message [closed]
- Shortcode, Concatenating & Parse error: syntax error, unexpected T_FOREACH
- Create shortcode for each form field in contact form 7
- Shortcode Attribute not defined
- Contact Form 7 shortcode is commented out, but I receive spam emails from it
- Working with Contact Form 7 pipes
- Use Shortcode on Custom Page
- I’ve broken the short code for Contact Form 7!
- Change appearance of shortcode text inside editor
- Why might a plugin’s ‘do_shortcode’ not work in an AJAX request?
- Combining shortcode and get_template_part
- Escaping quotes from shortcode attributes
- Shortcode output always showing at top of page
- How to detect if a Shortcode is being called on a page?
- How to get current page title inside a page itself in a shortcode and in page content
- Short code to display a loop
- shortcode inside another shortcode
- Need MySQL Query or WP-CLI command to updates old URLs in Shortcodes [closed]
- Custom Shortcode AJAX 400 Bad Request
- WordPress gallery ‘post_gallery’ filter doesn’t work with feeds?
- shortcode to create dynamic dropdown box form shortcode attributes
- conditional shortcode not working
- Ajax not returning anything on form submit
- How do I add my own custom shortcodes?
- Can’t seem to get [shortcode]s to work
- Wraping $content into link with shortcodes
- nested Shortcode doesn’t work
- Slow page loading when using a simple shortcode on the same page multiple times
- TinyMCE get selected text and underlying HTML
- Remove and restore one shortcode
- Rewriting WordPress Gallery Shortcode with Bootstrap Carousel
- other shortcodes in Contact form 7 MAILS [closed]
- Remove empty p-Tags in Shortcode content before non p-Tags
- What is a short code?
- Using ACF field in do_shortcode()
- Display content from another site page using a shortcode
- Wrap shortcode inside custom block
- Combining similar shortcode functions?
- Creating a shortcode based on users preferences
- Get a post’s thumbnail url or display default image in shortcode
- basic shortcode – Why 1st paragraph not wrapped in p tag, but 2nd is
- unwanted P tags in shortcode, delay wpautop not working
- Shortcodes and a list of IDs?
- Convert HTML Script to Shortcode [closed]
- Passing html tags as shortcode parameters
- Registration Form Shortcode
- Include tags in the body of a post
- no content after shortcode
- Remove shortcodes that are different (but same pattern) in each post
- Place a URL parameter value inside a WordPress short code
- Scripts for shortcode: concatenate or load separately? [closed]
- Print shortcode in defined area
- WordPress shortcodes are not working
- Conditionally Loading JavaScript/CSS for Shortcodes
- How to use/enable Pagination?
- Wrap Shortcodes and wpautop
- Shortcode called twice
- Add JS in footer via shortcode?
- Passing variable in nested shortcodes
- Shortcode Always Displays Default Attribute Value
- How to add a same div on every page
- WordPress Shortcode / Only works in classic editor, gutenberg error / invalid json response
- Display a form partially with a shortcode
- Do shortcode in template file
- How do I fit a function inside an opening and closing do_shortcode
- Modifying the wordpress login page and then referencing it with a shortcode problem
- Pass instance number to shortcode child
- Render shortcodes with get_post_custom
- Add shortcode within the_content()
- Pass a comma separated shortcode attribute to a function
- Using Shorcodes in Sharing Preview and Notifications Title from Post Title
- Echo Extra Shortcode HTML to wp_foot
- How can I use a plugin shortcode inside of a html form?
- Is the WP audio shortcode still relevant?
- If statement shortcode
- Shortcode PHP file for two conditions passed when do shortcode
- Shortcode not working when I output data from wpdb html table row
- update_metadata() appends shortcode data for every page refresh
- Gallery shortcode is empty but magically creates a gallery
- Display tags cloud from a specific category ID with a shortcode
- How to avoid one code multiple times instead do that through some function? Shortcode, but I think shortcode is not used in main theme’s core files?
- Shortcode appeared twice on page, one time before content, one time where it’s really called
- Get current category and place it in shortcode
- Modify Blog Module layout in Child theme
- Inserting a variable into a shortcode inside php
- How can I define the output of shortcode attribute value?
- Using shortcodes that wrap around code
- Shortcode for Admin Theme Option?
- Clarify: Enqueueing scripts within shortcode only loads in footer?
- What makes a placeholder resizable in Tinymce?
- How to scroll to a shortcode-generated anchor
- add post type pram to wp shortcode
- Working with Shortcode, AJAX, Elementor
- How to exclude some cats from wp_list_categories using shortcut
- How can I create a shortcode that shows a list of categories on the single product page?