Select Custom Taxonomy from Theme Options

Since you are likely developing this and you don’t have any posts associated with the season taxonomy, you will not get any terms returned with get_terms(‘season’);’ unless you specify the parameterhide_emptyto be0`. I would change the code thusly: /** Seasons */ $args = array( ‘hide_empty’ => ‘0’ ); $season_terms = get_terms(‘season’, $args); $season_tax = array(); … Read more

Turning WordPress Into full-featured website?

Yes! I’ve used WordPress to create many large sites, that are by no means blogs. Sometimes the structure that WordPress uses, with the custom posts + taxonomies, etc., actually makes things much easier than many PHP frameworks. There seems to be a big discussion in the PHP community as to whether WordPress should be used … Read more

I don’t have permission to save the theme options I created myself?

You’re adding the menu page using the “administrator” role. Is the account you’re using an administrator? Note: 1) You should be using an appropriate capability, rather than a user role. Generally, the appropriate capability for editing Theme options is edit_theme_options. 2) There is a known bug with WordPress, in that currently, manage_options is required for … Read more

Site is setup statically – how to make it content managable?

Hire a developer or purchase a customizable theme. I don’t get the impression that the answer you are looking for can be easily and clearly stated in a brief manner. You are going to need crash courses in Custom Post Types and The Loop, which are basically what makes wordpress what it is (which is … Read more

Hiding Google Analytics code based on theme options

Take the GA code from your header and wrap it in a function hooked to wp_head; function __analytics_head() { $options = get_option( ‘themename_theme_options’ ); if ( !empty( $options[‘analytics’] ) ) : ?> <script type=”text/javascript”> var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘<?php echo esc_js( $options[‘analytics’] ) ; ?>’]); _gaq.push([‘_trackPageview’]); (function() { var ga = document.createElement(‘script’); … Read more

Multiple Custom Headers

What you want to achieve is posible but not with WordPress custom-header feature because it’s you can use multiple images in random sequence. If you mean ‘different page templates’ you can simply hard code your images links in your templates, but this is not good solution. Another solution is to write function which will check … Read more

Setting field not saving on front-end

Make the $options variable global by changing the header_add_content() function to the following: function header_add_content() { global $options; $options = get_option(‘header_options’); } add_filter(“the_content”, “header_add_content”); Then declare $options as the global $options on the front-end template before you use it, for example: <p><?php global $options; echo $options[‘txt_mail’]; ?></p>