سلام من با برنامه sothink dhtml menu يك منو ساختم هر چي كد هاشو تو هدر ميزارم نمايش نميده ممنون ميشم منو راهنمايي كنيد در ضمن ميخوام تو صفحه اصلي سايت فقط برگه درباره ما نمايش داده بشه پست ها نمايش داده نشه و پست ها تو دسته خودشون باشه ممنون ميشم
اين فايل هدر من هستش كه خودم كدها رو گذاشتم:
<?php load_theme_textdomain('shakhes'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php //language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name'); }
elseif (is_single() ) { single_post_title(); }
elseif (is_page() ) { bloginfo('name'); echo ': '; single_post_title(); }
else { wp_title('',true); } ?></title>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/script.js"></script>
<script type="text/javascript" src="/dhtml/stmenu.js"></script>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
<script type="text/javascript" id="sothink_dhtmlmenu"> <!--
st_siteroot="file:///D|/Program/Xampp/xampp/htdocs/wordpress/wp-content/themes/cat/dhtml";
st_jspath="dhtml/stmenu.js";
if(!window.location.href.indexOf("file:") && st_jspath.charAt(0)=="/")
document.write('<script type="text/javascript" src="'+st_siteroot+st_jspath+'"><\/script>');
else
document.write('<script type="text/javascript" src="'+st_jspath+'"><\/script>');
//--> </script>
</head>
<body>
<script type="text/javascript" src="/dhtml/menu.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="dhtml/menu.js"></script>
<a href="http://www.dhtml-menu-builder.com">Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com</a>
<script type="text/javascript">
<!--
stm_bm(["menu4448",950,"/","blank.gif",0,"","",0,0,250,0,500,1,0,0,"","",0,0,1,2,"default","hand","file:///D|/Program/Xampp/xampp/htdocs/wordpress/wp-content/themes/cat/dhtml",1,25],this);
stm_bp("p0",[0,4,0,0,0,0,15,7,100,"",-2,"",-2,50,0,0,"#999999","transparent","",3,0,0,"#000000","",12,12,0,"","",3,"",12,12,0,"","",3,"",12,12,0,"","",3,"",12,12,0,"","",3,"","","","",1,1,1,1,1,1,1,1]);
stm_ai("p0i0",[0,"مقالات","","",-1,-1,0,"#","_self","","","","",15,2,0,"","",7,7,0,1,1,"#E6EFF9",1,"#FFD602",1,"dhtml/2-middle.gif","dhtml/3-middle.gif",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#000000","8pt Verdana","8pt Verdana",0,0,"dhtml/2-left.gif","dhtml/3-left.gif","dhtml/2-right.gif","dhtml/3-right.gif",10,10,38],150,38);
stm_bp("p1",[1,4,0,0,0,0,15,0,100,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.30)",5,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.30)",4,80,0,0,"#999999","transparent","",3,0,0,"#000000"]);
stm_ai("p1i0",[0,"Glanda\r\n","","",-1,-1,0,"#","_self","","","","",15,2,0,"","",0,0,0,0,1,"#E6EFF9",1,"#FFD602",1,"dhtml/4-middle.gif","dhtml/5-middle.gif",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#000000","8pt Verdana","8pt Verdana",0,0,"dhtml/4-left.gif","dhtml/5-left.gif","dhtml/4-right.gif","dhtml/5-right.gif",10,10,37],150,37);
stm_aix("p1i1","p1i0",[0,"DHTMLMenu"],150,37);
stm_aix("p1i2","p1i0",[0,"Decompiler"],150,37);
stm_aix("p1i3","p1i0",[0,"Quicker"],150,37);
stm_aix("p1i4","p1i0",[0,"Flash player"],150,37);
stm_aix("p1i5","p1i0",[0,"Tree Menu"],150,37);
stm_aix("p1i6","p1i0",[0,"Glanda Samples"],150,37);
stm_aix("p1i7","p1i4",[],150,37);
stm_aix("p1i8","p1i3",[],150,37);
stm_ep();
stm_aix("p0i1","p0i0",[0,"Samples","","",-1,-1,0,"#","_self","","","","",15,2,0,"","",7,7,0,0],150,38);
stm_bpx("p2","p1",[]);
stm_aix("p2i0","p1i6",[],157,37);
stm_aix("p2i1","p1i0",[0,"Menu Samples"],157,37);
stm_aix("p2i2","p1i2",[],157,37);
stm_aix("p2i3","p1i0",[0,"QuickerSamples"],157,37);
stm_aix("p2i4","p1i4",[],157,37);
stm_ep();
stm_aix("p0i2","p0i1",[0,"Download"],150,38);
stm_bpx("p3","p1",[]);
stm_aix("p3i0","p1i0",[0,"Glanda"],150,37);
stm_aix("p3i1","p1i2",[],150,37);
stm_aix("p3i2","p1i3",[],150,37);
stm_aix("p3i3","p1i4",[],150,37);
stm_aix("p3i4","p1i5",[],150,37);
stm_aix("p3i5","p1i1",[],150,37);
stm_ep();
stm_aix("p0i3","p0i1",[0,"About"],150,38);
stm_bpx("p4","p1",[]);
stm_aix("p4i0","p3i0",[],150,37);
stm_aix("p4i1","p1i1",[],150,37);
stm_aix("p4i2","p1i2",[],150,37);
stm_aix("p4i3","p1i3",[],150,37);
stm_aix("p4i4","p1i4",[],150,37);
stm_aix("p4i5","p1i5",[],150,37);
stm_aix("p4i6","p1i6",[],150,37);
stm_aix("p4i7","p1i0",[0,"DHTMLMenu "],150,37);
stm_aix("p4i8","p2i3",[],150,37);
stm_ep();
stm_ep();
stm_cf([0,0,0,"Main_frame","Navigation_frame",1]);
stm_em();
//-->
</script>
<div class="PageBackgroundGradient"></div>
<div class="Main">
<div class="Sheet">
<div class="Sheet-tl"></div>
<div class="Sheet-tr"><div></div></div>
<div class="Sheet-bl"><div></div></div>
<div class="Sheet-br"><div></div></div>
<div class="Sheet-tc"><div></div></div>
<div class="Sheet-bc"><div></div></div>
<div class="Sheet-cl"><div></div></div>
<div class="Sheet-cr"><div></div></div>
<div class="Sheet-cc"></div>
<div class="Sheet-body">
<div class="nav"
<div>
</div>
</div>
</div>
<div class="Header">
<div class="Header-png"></div>
</div>
<div class="nav">
<ul class="artmenu">
<li class="<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a>"><?php _e('Home'); ?></a>
<?php wp_list_pages('sort_column=id&depth=1&title_li=') ; ?>
<?php wp_register('
<li>','</li>
') ; ?>
<div class="l">
</div>
<div class="r">
<div>
</div>
</div>
</div>
و اين هم فايل index كه براي قرار دادن برگه درباره ما در صفحه اصلي هستش كه بازم خودم توسط كوئري اين كارو كردم ولي به غير از درباره ما يكي از پست ها رو نمايش ميده
<?php get_header(); ?>
<div class="contentLayout">
<div class="sidebar1">
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
</div>
<?php dynamic_content_gallery(); ?>
<div class="content">
<?php
$prev_link = get_previous_posts_link(__('Newer Entries »', 'kubrick','tenet'));
$next_link = get_next_posts_link(__('«????', 'kubrick','tenet'));
?>
<?php if ($prev_link || $next_link): ?>
<div class="Post">
<div class="Post-body">
<div class="Post-inner article">
<div class="PostContent">
<div class="navigation">
<div class="alignleft"><?php echo $next_link; ?></div>
<div class="alignright"><?php echo $prev_link; ?></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
<?php endif; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
if ( is_home() ) {
query_posts( 'page_id=2');
}
?>
<div class="Post">
<div class="Post-body">
<div class="Post-inner article">
<h2 class="PostHeaderIcon-wrapper">
<span class="PostHeader"><a>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<?php the_title(); ?>
</a></span>
</h2>
<?php ob_start(); ?>
<?php $icons = array(); ?>
<?php if (!is_page()) : ?>
<?php ob_start(); ?>
<img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="17" height="18" alt="PostDateIcon" />
<?php the_time(__('F jS, Y', 'kubrick')) ?>
<?php $icons[] = ob_get_clean(); ?>
<?php endif; ?>
<?php if (current_user_can( 'edit_post', $post->ID )) : ?><?php ob_start(); ?>
<img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="14" height="14" alt="PostEditIcon" />
<?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?>
<?php if (0 != count($icons)): ?>
<div class="PostHeaderIcons metadata-icons">
<?php echo implode(' | ', $icons); ?>
</div>
<?php endif; ?>
<?php $metadataContent = ob_get_clean(); ?>
<?php if (trim($metadataContent) != ''): ?>
<div class="PostMetadataHeader">
<?php echo $metadataContent; ?>
</div>
<?php endif; ?>
<div class="PostContent">
<?php if (is_search()) the_excerpt(); else the_content(__('<div class="dokme"></div>')); ?>
</div>
<div class="cleared"></div>
<?php the_excerpt(); ?>
<p><a>" title="<?php the_title(); ?>" class="more-link">Continue reading...</a></p>
<?php $icons = array(); ?>
<?php if (!is_page()) : ?>
<?php ob_start(); ?>
<img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon" />
<?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
<?php $icons[] = ob_get_clean(); ?>
<?php endif; ?>
<?php if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
<img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
<?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?>
<?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
<img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon" />
<?php comments_popup_link(__('No Comments »', 'kubrick','tenet'), __('1 Comment »', 'kubrick','tenet'), __('% Comments »', 'kubrick','tenet'), '', __('Comments Closed', 'kubrick','tenet') ); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?>
<?php if (0 != count($icons)): ?>
<div class="PostFooterIcons metadata-icons">
<?php echo implode(' | ', $icons); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php if ($prev_link || $next_link): ?>
<div class="Post">
<div class="Post-body">
<div class="Post-inner article">
<div class="PostContent">
<div class="navigation">
<div class="alignleft"><?php echo $next_link; ?></div>
<div class="alignright"><?php echo $prev_link; ?></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
<?php endif; ?>
<?php else : ?>
<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?></p>
if(function_exists('get_search_form')) get_search_form();
<?php endif; ?>
</div>
<div class="sidebar2">
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>
</div>
<div class="cleared"></div>
<?php get_footer(); ?>