WordPress theme options error
First, change your code into the following: $value = get_option( ‘mytheme_value’ ); query_posts ( “meta_key=post_views_count&orderby=meta_value_num&order=DESC&meta_value={$value}”); When you use single quotation marks, php isn’t parsed in the string, and functions (like get_option) will never be called from within a string. Therefore, call the function get_option first, and put the value in a double quoted string (which … Read more