function theme_options_panel(){
add_menu_page('Settings', 'Settings', 'manage_options', 'theme-options','wps_theme_func_Settings','' ,'3');
add_submenu_page( 'theme-options', 'Business Cards', 'Business Cards', 'manage_options', 'theme-op-settings', 'wps_theme_func_Business_Cards');
add_submenu_page( 'theme-options', 'FAQ', 'FAQ', 'manage_options', 'theme-op-faq', 'wps_theme_func_faq');
}
add_action('admin_menu', 'theme_options_panel');
function wps_theme_func_Settings(){ ?>
<div class="wrap"><div id="icon-options-general" class="icon32"><br></div></div>
<h2>Settings</h2>
<center><h1>This is a Settings page</h1></center>
<?php }
function wps_theme_func_Business_Cards(){ ?>
<div class="wrap"><div id="icon-options-general" class="icon32"><br></div></div>
<h2>Business Cards</h2>
<center><h1>This is a Business Cards page</h1></center>
<?php }
function wps_theme_func_faq(){ ?>
<div class="wrap"><div id="icon-options-general" class="icon32"><br></div></div>
<h2>FAQ</h2>
<center><h1>This is a FAQ page</h1></center>
<?php }
i have got the samw problem .... did you get the answer
add_action('init','custom_init');
add_filter('post_type_link', 'story_permalink', 10, 3);
function custom_init(){
$story = array(
'query_var' => true,
'rewrite' => false,
);
$artist = array(
'query_var' => true,
'rewrite' => true
);
$writer = array(
'query_var' => true,
'rewrite' => true
);
global $wp_rewrite;
$story_structure = '/%artist%/%writer%/%story%';
$wp_rewrite->add_rewrite_tag("%story%", '([^/]+)', "story=");
$wp_rewrite->add_permastruct('story', $story_structure, false);
}
function story_permalink($permalink, $post_id, $leavename){
$post = get_post($post_id);
$rewritecode = array(
'%artist%',
'%writer%',
$leavename? '' : '%postname%',
$leavename? '' : '%pagename%',
);
if('' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft'))){
if (strpos($permalink, '%artist%') !== FALSE){
$terms = wp_get_object_terms($post->ID, 'artist');
if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $artist = $terms[0]->slug;
else $artist = 'unassigned-artist';
}
if (strpos($permalink, '%writer%') !== FALSE){
$terms = wp_get_object_terms($post->ID, 'writer');
if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $writer = $terms[0]->slug;
else $writer = 'unassigned-writer';
}
$rewritereplace = array(
$artist,
$writer,
$post->post_name,
$post->post_name,
);
$permalink = str_replace($rewritecode, $rewritereplace, $permalink);
}
else{
}
return $permalink;
}
i am getting a blank white screen at the wp-admin page, if i go to wp-login.php i can enter details but then still get the white screen. I've disabled all plugins, renamed the index files to html, renamed the plugins folder and deleted any blank lines from the functions.php folder (every solution i found on google!) i think i have done as much as i can on my own - is there anywhere i can find an expert to take a look? thanks![]()
Try to read this:
http://wordpress.org/support/topic/white-screen-22
I'm using the Cover PinPress Theme V1.4 and I just installed Adsense using the plugin Komoona and set the ad to show up on the header. For some reason the category/nav bar shows up right in the middle of the ad and I can't find a way to get rid of it or move it out of the way.
heres a pic:
View attachment 18322