Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using contact form 7. I have successfully added to my page, Now I want to export the database onto a separate page with short code. I have the following code, but it results in the following error.

\Code

<?php
echo do_shortcode('[cfdb-html form="Contact form 1" show="Submitted,your-name"]${your-name}${your-email}${your-message}[/cfdb-html]');
?>

\Error

Fatal error: Call to undefined function is_plugin_active() in /Users/anderskitson/Sites/fiftyfity/wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php on line 654
share|improve this question

closed as off-topic by Pieter Goosen, cybmeta, Mark Kaplun, kaiser Dec 4 at 16:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

mmmm but as far as I know the right way to display the shortcode is

 [cfdb-html form="Contact form 1" show="Submitted,your-name,your-email,your-message"][/cfdb-html]
share|improve this answer

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) ?>
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.