Blog keeps redirecting to the contact page

After looking for the problem for a while, I decided to search in the MySQL database for the word “contact”, and I noticed that a table called wp_redirection_items indeed contained an entry which redirected from /blog/ to /blog/contact. A quick Google search has led me to this page, explaining the problem – it’s caused by … Read more

contact form 7 database short codes [closed]

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) ?>