cnrcssl
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to call options from theme options to display in theme.I managed to find the solution. The options framework appears to use the name of the Theme directory folder rather than the name specified in the CSS file. All working fine now.
thanks Chip for your help!
Forum: Themes and Templates
In reply to: How to call options from theme options to display in theme.Ah ok.
I have just included the default http://wptheming.com/options-framework-theme/
in an effort to try and understand how it all works.
Changing the code to
$options = get_option( ‘optionsframework’ );
var_dump( $options );produces this
array(3) { [“id”]=> string(9) “wordpress” [“knownoptions”]=> array(1) { [0]=> string(9) “wordpress” } [“version”]=> string(3) “1.5” }
This is a copy of the first part of the options.php
<?php
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
* By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
* If the identifier changes, it’ll appear as if the options have been reset.
*/function optionsframework_option_name() {
// This gets the theme name from the stylesheet
$themename = get_option( ‘stylesheet’ );
$themename = preg_replace(“/\W/”, “_”, strtolower($themename) );$optionsframework_settings = get_option( ‘optionsframework’ );
$optionsframework_settings[‘id’] = $themename;
update_option( ‘optionsframework’, $optionsframework_settings );
}How do i tell what the actual name of my theme options is?
Thanks
Forum: Themes and Templates
In reply to: How to call options from theme options to display in theme.My current code gets me nothing.
Just included it as a starting point really.
The code you included produces this
bool(false)
Thanks for your help.
Forum: Fixing WordPress
In reply to: .htaccess, page not found with www. but fine without www.Brilliant!
Pointed www to the go daddy hosting.
Hopefully should be sorted.
Thankyou very much for your help.
Forum: Fixing WordPress
In reply to: .htaccess, page not found with www. but fine without www.Thankyou! That makes a lot of sense.
I have logged on to the Domain Name manager.
I couldn’t work out how to see what it hosting it is pointed at?In the Diagnostic section of Domain Manager it says the site address is resolving properly.
Nameserver Availability
Success! Nameserver(s) NS42.DOMAINCONTROL.COM, NS41.DOMAINCONTROL.COM resolved successfully. Your site is available.Web Server Availability
Success! THEFITNESSCONSULTANTS.CO.UK resolved successfully, and your site is available.How am i supposed to find the DNS entry for http://www.?
Thanks again for your help.
Forum: Fixing WordPress
In reply to: Functions.php and theme optionsthank you very much for your help!
Forum: Fixing WordPress
In reply to: Functions.php and theme optionsJust had to google that. Not using any framework, have just been building from scratch.