FATAL ERROR: WP complains about redeclaration [closed]

Wrap your function with !function_exists() to avoid a redeclare error. if( ! function_exists(‘FAvideoid’) ) : function FAvideoid() { return $wpdb->get_var( “SELECT ‘video_id’ FROM $wpdb->ytvideos ORDER BY RAND() LIMIT 1;”); } endif; Or to reduce the code from being imported more than once: include_once “FA-db.php”; include_once “FA-admin.php”; include_once “FA-ad.php”; But probably the best route is to … Read more

Google Map JavaScript error after migrating

Google API’s now requires API key for new domains, you should create an API key as per instructions here: https://developers.google.com/maps/documentation/javascript/get-api-key and edit the line in the plugin that loads the Google Maps API to include your key as the value of a ‘key’ parameter. Wherever you find one of these: “https://maps.googleapis.com/maps/api/js“ or “http://maps.googleapis.com/maps/api/js” in the … Read more

New to WordPress & Freelancing [closed]

Unfortunately I’ve heard that comment a couple of times: WordPress was just like Weebly and a drag and drop enthusiast for those who can’t code. Which is undoubtedly wrong. WordPress is a CMS (Content Management System). A CMS is a piece of program that (as its name suggest) manages your content for you, however the … Read more

affiliate linking from wordpress [closed]

I wrote a plugin (“AmazoLinkenator”) that automatically adds your Amazon afilliate link to all Amazon links – overwriting any existing Amazon affiliate link that others might place in a comment. The techniques in there could be added to to do other affiliate places. Found here: https://wordpress.org/plugins/amazolinkenator/ It has options to shorten via Bit.ly your links, … Read more

WPBakery Editor dropdown hidden behind editor [closed]

Try to disable all plugins except WPBakery Page Builder and then enable back the plugins one at a time, until the problem is gone. If that doesn’t solve the problem, then maybe the WPBakery Page Builder is in conflict with the active theme on your site. You should also check out: https://support.wpbakery.com/ https://kb.wpbakery.com/

Header Paperpunch theme disappers with IE9 [closed]

I loaded your test site and immediately noticed a couple of issues. Not 100% sure what exactly is causing the disappearing header, but here are some things to check: style-options.php Your main stylesheet is using @import url(“functions/stylesheets/style-options.php”); to import a stylesheet. My guess is that it’s trying to import some dynamically-generated css. Unfortunately, this is … Read more