Fatal error: Call to undefined function get_option()

I don’t see any get_option() function on line 9 or anywhere else in your code. After quick googling, my guess would be that your problem is the same as this question on stackoverflow EDIT As @Ray proposed at the linked question, paste this in your code to check if wp-includes/option.php is included: $includedStuff = get_included_files(); … Read more

Where to adjust presets for slider options “auto rotate” (3, 5, 10, 15 seconds)? [closed]

In anybody needs this in the future I found a quick and easy workaround: you could just adjust the slider interval in the shortcode. First you have to switch to the “classic mode” (turn the Visual Composer off) and then find the shortcode that defines the interval: [vc_gallery interval=”10″ images=”22390,23006″ img_size=”full”] You can then set … Read more

Using get_option() for check box field

This may not exactly answer the question, but let’s see the issues with your code: If you want to save the data in the same format as the default value ($fields_default), then: Start your foreach like so: foreach ( $orderdescider as $i => $item ). Then inside that foreach, $id and $checkbox should always be … Read more

The issue of redirecting my site to a new domain

There is a search and replace plugin I have used that works pretty good. http://wordpress.org/extend/plugins/search-and-replace/ In the future I would not hard code any links in if you can help it as well. Use dynamic linking like: $url = site_url(‘/secrets/’); echo $url; or: img src=”https://wordpress.stackexchange.com/questions/81722/<?php echo get_stylesheet_directory_uri() ?>/images/aternus.png” alt=”” title=”” width=”” height=”” /> as an … Read more

Only show theme option if it option exists

If you’re wanting to output based on the option being defined, then use isset(). e.g. this: <?php echo $up_options->slideshow6; ?> …becomes this: <?php if ( isset( $up_options->slideshow6 ) ) { echo $up_options->slideshow6; } ?> EDIT How would I get the following to appear only if “slideshow6” was defined <a href=”#”><img src=”<?php echo $up_options->slideshow1; ?>” alt=”#”/></a> … Read more

Importing WP settings to another host

Follow the steps: Copy/Move all files to new location Export database from old mysql server and import data in new server (you can use phpmyadmin for that) Select wp_options table using phpmyadmin from new location. Edit 2 entry in option table with option name home and siteurl . set option value = new location url … Read more