Themes

Call to undefined function add_action() in plugin

Call to undefined function add_action() in plugin

If add_action comes up undefined, you're trying to run it outside of your theme's core files - basically, it's running without any of the processing WordPress is supposed to do before hitting your custom functions. This should be in your theme's functions. php file or within a plugin, as Colin pointed out.

oEmbed in wordpress multisite not working
How do I fix Facebook oEmbed issues in WordPress? How do I add oEmbed to WordPress? How do I install oEmbed? Does Facebook use oEmbed? How do I fix a ...
Creating post template for a Custom Post Type
Can I assign a template to a custom post type? How do I create a custom post type template in WordPress? How do I create a custom post type archive pa...
Blog page getting redirected to wp login page problem!
Here's how to troubleshoot the login redirect loop issue by deactivating your WordPress plugins Access your website's wp-content directory using an FT...