رفتن به مطلب

عدم باز شدن صفحه های دیگر


montazer

پست های پیشنهاد شده

سلام به همه دوستان

من در یکی از سایت هام وقتی در انتهای سایت بر روی صفحه دوم و یا صفحه های دیگر کلیک می کنم. صفحه مرورگر به لینک پیج میره ، ولی دوباره مطالب صفحه اول رو نمایش میده.

سایت رو ببینید خودتون بهتر متوجه میشید: http://hanifnia.ir


http://hanifnia.ir

چه کنم تا مشکل حل بشه؟

لینک به ارسال

از طریق پیشخوان -> تنظیمات -> پیوند یکتا

حالت پیوند یکتا را مجددا ذخیره سازی نمایید

لینک به ارسال

دوست عزیز پیوند یکتام به این صورته:


/%post_id%-%postname%/

دوباره هم بازسازیش کردم ولی همچنان مشکل پا بر جاست :(

لینک به ارسال

شما کلاً چند تا مطلب دارید ؟ صفحات سایت رو برای نمایش چند تا پست تنظیم کردید ؟ اگر تعدادش الان در صفحه درسته پس افزونه ای که برای جدا سازی صفحات استفاده میکنید مشکل داره .

لینک به ارسال

سلام

مطالب بشتر از چیزی است که در صفحه اول نمایش میده.

قبلا که تعداد مطالب نمایشی صفحه نخست کمتر بود، تعداد صفحه ها به 4~5 تا میرسید. ولی اون موقع هم چنین مشکلی بود.

لینک به ارسال

سلام

مطالب بشتر از چیزی است که در صفحه اول نمایش میده.

قبلا که تعداد مطالب نمایشی صفحه نخست کمتر بود، تعداد صفحه ها به 4~5 تا میرسید. ولی اون موقع هم چنین مشکلی بود.

شما کد های index.php پوسته مشکل دار رو اینجا بزارید.

لینک به ارسال

شما کد های index.php پوسته مشکل دار رو اینجا بزارید.

بعید نیست. چون وضع کدهای قالب داغونن. آخه قالبش ماله 100سال پیشه :D

اینم کد های index:


<!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">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?></title>
</head>
<body>
<?php
$text="خوش آمديد!";
wp_head();
?>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="887" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac.png'); background-repeat: repeat-y; background-position: left top">
<tr>
<td>
<img border="0" src="<?php bloginfo('template_url') ?>/images/top_2.png" width="887" height="10"></td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="867">
<tr>
<td>
<img border="0" src="<?php bloginfo('template_url') ?>/images/logo.jpg" width="867" height="161"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><ul id="mainlevel-nav"><li><a href="<?php bloginfo('url'); ?>" class="mainlevel-nav" >صفحه اصلي</a></li><?php wp_list_pages('title_li='); ?></ul></td>
<td width="187">
<img border="0" src="<?php bloginfo('template_url') ?>/images/left_top_link.png" width="187" height="22"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="184" valign="top" style="height: 500px">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">
<tr>
<td>


<div class="moduletable"><h3>موضوع</h3>
<ul>
<ul>
<?php wp_list_categories('orderby=name&exclude=327,75'); ?>
</ul>
</ul>
</div>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("right") ) ?>
</td>
</tr>
</table>
</div>
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
 
</td>
</tr>
<tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #FFEEDF">
<tr>
<td width="5" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/left.png'); height: 200px">
<img border="0" src="<?php bloginfo('template_url') ?>/images/top_left.png" alt="No Image"></img></td>
<td valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/top.png'); background-repeat: repeat-x; height: 200px">
<br/><div class="componentheading"><?php echo $text; ?></div><table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0">

<?php if (have_posts()) : ?>

<?php if (is_home()) { query_posts("cat=327,-75"); } ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$postimg = get_post_meta($post->ID, "postimg", true);
$post_excerpt = $post->post_content;
?>

<tr><td valign="top" width="100%">
<table class="contentpaneopen">
<tr>
<td class="contentheading" width="100%"><?php the_title(); ?></td>
<td align="right" width="100%" class="buttonheading">
<a href="<?php the_permalink(); ?>" target="_blank" title="پيوند ثابت">
<img src="<?php bloginfo('template_url') ?>/images/link.gif" alt="پيوند ثابت" name="پيوند ثابت" align="middle" border="0" /></a>
</td>
</tr>
</table>
<table class="contentpaneopen">
<tr>
<td valign="top" colspan="2">
<div style="width:440px;"><?php the_content(''); ?></div>
<br />
برچسب:
<br />
<?php the_tags(__(' ','dnld'), __(' ','dnld'), __('','dnld')); ?>
<?php if ( !is_single() and !is_page() ) : ?><p><img src='<?php bloginfo('template_url') ?>/images/comment.gif' hspace='2' align='absmiddle' alt='' /><a href="<?php comments_link(); ?>">نظرات[<?php comments_number('0','1','%'); ?>]</a> | <?php endif; ?>دسته: <?php the_category(', ') ?> | نويسنده: <?php the_author(); ?><?php if ( !is_single() and !is_page() ) : ?> | <a class="" href="<?php the_permalink(); ?>">ادامه مطلب...</a><?php endif; ?></p>
</td>
</tr>
</table>
<?php if ( is_single() or is_page() ) { ?><?php comments_template(); ?><?php } ?>
<span class="article_seperator"> </span>
</td></tr>
<?php endwhile; ?><?php endif; ?>
</table></td></tr>
</table>
<div style="text-align:center; direction:ltr;"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
<br>
</td>
<td width="4" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/right.png'); height: 200px">
<img border="0" src="<?php bloginfo('template_url') ?>/images/top_right.png" alt="No Image"></img></td>
</tr>
<tr>
<td width="5">
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_left.png" alt="No Image"></img></td>
<td style="background-image: url('<?php bloginfo('template_url') ?>/images/bot.png')">
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot.png" alt="No Image"></img></td>
<td width="4">
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_right.png" alt="No Image"></img></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="199" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="height: 76px; background-image: url('<?php bloginfo('template_url') ?>/images/bac_search.png'); background-repeat: no-repeat; background-position: left top" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="199">
<tr>
<td style="height: 43px" width="199" colspan="3"> </td>
</tr>
<tr>
<td width="8"> </td>
<td width="158">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="122">
<tr>
<td>
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<form action="<?php bloginfo('home'); ?>/" method="get">
<div class="search">
<input name="s" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="کلید واژه..." onblur="if(this.value=='') this.value='کلید واژه...';" onfocus="if(this.value=='کلید واژه...') this.value='';" />
</div>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td width="33"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">
<tr>
<td>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("left") ) ?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="99%" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_footer.png')">
<tr>
<td width="12">
</img>
<img border="0" src="<?php bloginfo('template_url') ?>/images/right_footer.png" alt="No Image"></td>
<td class="footer" id="footer">
<p align="center"><font size="2" color="#FFDBBB">تمامي حقوق براي اين سايت محفوظ مي‌باشد. کپي برداري از اين سايت تنها با ذکر منبع مجاز مي‌باشد.</font></td>
<td width="12">
</img>
<img border="0" src="<?php bloginfo('template_url') ?>/images/left_footer.png" alt="No Image"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_2.png" width="887" height="11"></td>
</tr>
</table>
</div>
</body>
</html>

لینک به ارسال

منم چندروز پیش وقتی افزونه پرداخت پیلاین رو نصب کردم همین مشکل برام پیش اومد

از طریق پیشخوان -> تنظیمات -> پیوند یکتا روی پیش فرض ست کردم و ذخیره کردم بعدش دوباره ساختار دلخواهم رو ست کردم و ذخیره کردم درست شد

لینک به ارسال

منم چندروز پیش وقتی افزونه پرداخت پیلاین رو نصب کردم همین مشکل برام پیش اومد

از طریق پیشخوان -> تنظیمات -> پیوند یکتا روی پیش فرض ست کردم و ذخیره کردم بعدش دوباره ساختار دلخواهم رو ست کردم و ذخیره کردم درست شد

بازم نشد :(

حتی در حالت پیوند یکتا پیش فرض هم، همین مشکل پابرجاست.

لینک به ارسال

این کد را امتحان کنید

<!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">

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?></title>

</head>

<body>

<?php

$text="خوش آمديد!";

wp_head();

?>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="887" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac.png'); background-repeat: repeat-y; background-position: left top">

<tr>

<td>

<img border="0" src="<?php bloginfo('template_url') ?>/images/top_2.png" width="887" height="10"></td>

</tr>

<tr>

<td>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="867">

<tr>

<td>

<img border="0" src="<?php bloginfo('template_url') ?>/images/logo.jpg" width="867" height="161"></td>

</tr>

<tr>

<td>

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td><ul id="mainlevel-nav"><li><a href="<?php bloginfo('url'); ?>" class="mainlevel-nav" >صفحه اصلي</a></li><?php wp_list_pages('title_li='); ?></ul></td>

<td width="187">

<img border="0" src="<?php bloginfo('template_url') ?>/images/left_top_link.png" width="187" height="22"></td>

</tr>

</table>

</td>

</tr>

<tr>

<td>

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td width="184" valign="top" style="height: 500px">

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">

<tr>

<td>

<div class="moduletable"><h3>موضوع</h3>

<ul>

<ul>

<?php wp_list_categories('orderby=name&exclude=327,75'); ?>

</ul>

</ul>

</div>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("right") ) ?>

</td>

</tr>

</table>

</div>

</td>

<td valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td>

 

</td>

</tr>

<?php if (have_posts()) : ?>

<tr>

<td>

<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #FFEEDF">

<tr>

<td width="5" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/left.png'); height: 200px">

<img border="0" src="<?php bloginfo('template_url') ?>/images/top_left.png" alt="No Image"></img></td>

<td valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/top.png'); background-repeat: repeat-x; height: 200px">

<br/><div class="componentheading"><?php echo $text; ?></div><table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0">

<?php if (is_home()) { query_posts("cat=327,-75"); } ?>

<?php while (have_posts()) : the_post(); ?>

<?php

$postimg = get_post_meta($post->ID, "postimg", true);

$post_excerpt = $post->post_content;

?>

<tr><td valign="top" width="100%">

<table class="contentpaneopen">

<tr>

<td class="contentheading" width="100%"><?php the_title(); ?></td>

<td align="right" width="100%" class="buttonheading">

<a href="<?php the_permalink(); ?>" target="_blank" title="پيوند ثابت">

<img src="<?php bloginfo('template_url') ?>/images/link.gif" alt="پيوند ثابت" name="پيوند ثابت" align="middle" border="0" /></a>

</td>

</tr>

</table>

<table class="contentpaneopen">

<tr>

<td valign="top" colspan="2">

<div style="width:440px;"><?php the_content(''); ?></div>

<br />

برچسب:

<br />

<?php the_tags(__(' ','dnld'), __(' ','dnld'), __('','dnld')); ?>

<?php if ( !is_single() and !is_page() ) : ?><p><img src='<?php bloginfo('template_url') ?>/images/comment.gif' hspace='2' align='absmiddle' alt='' /><a href="<?php comments_link(); ?>">نظرات[<?php comments_number('0','1','%'); ?>]</a> | <?php endif; ?>دسته: <?php the_category(', ') ?> | نويسنده: <?php the_author(); ?><?php if ( !is_single() and !is_page() ) : ?> | <a class="" href="<?php the_permalink(); ?>">ادامه مطلب...</a><?php endif; ?></p>

</td>

</tr>

</table>

<?php if ( is_single() or is_page() ) { ?><?php comments_template(); ?><?php } ?>

<span class="article_seperator"> </span>

</td></tr>

<?php endwhile; ?>

</table></td></tr>

</table>

<div style="text-align:center; direction:ltr;"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>

<?php endif; ?><br>

</td>

<td width="4" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/right.png'); height: 200px">

<img border="0" src="<?php bloginfo('template_url') ?>/images/top_right.png" alt="No Image"></img></td>

</tr>

<tr>

<td width="5">

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_left.png" alt="No Image"></img></td>

<td style="background-image: url('<?php bloginfo('template_url') ?>/images/bot.png')">

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot.png" alt="No Image"></img></td>

<td width="4">

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_right.png" alt="No Image"></img></td>

</tr>

</table>

</td>

</tr>

</table>

</td>

<td width="199" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td style="height: 76px; background-image: url('<?php bloginfo('template_url') ?>/images/bac_search.png'); background-repeat: no-repeat; background-position: left top" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="199">

<tr>

<td style="height: 43px" width="199" colspan="3"> </td>

</tr>

<tr>

<td width="8"> </td>

<td width="158">

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="122">

<tr>

<td>

<table cellpadding="0" cellspacing="0" class="moduletable">

<tr>

<td>

<form action="<?php bloginfo('home'); ?>/" method="get">

<div class="search">

<input name="s" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="کلید واژه..." onblur="if(this.value=='') this.value='کلید واژه...';" onfocus="if(this.value=='کلید واژه...') this.value='';" />

</div>

</form>

</td>

</tr>

</table>

</td>

</tr>

</table>

</div>

</td>

<td width="33"> </td>

</tr>

</table>

</td>

</tr>

<tr>

<td>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">

<tr>

<td>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("left") ) ?>

</td>

</tr>

</table>

</div>

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

<tr>

<td>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="99%" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_footer.png')">

<tr>

<td width="12">

</img>

<img border="0" src="<?php bloginfo('template_url') ?>/images/right_footer.png" alt="No Image"></td>

<td class="footer" id="footer">

<p align="center"><font size="2" color="#FFDBBB">تمامي حقوق براي اين سايت محفوظ مي‌باشد. کپي برداري از اين سايت تنها با ذکر منبع مجاز مي‌باشد.</font></td>

<td width="12">

</img>

<img border="0" src="<?php bloginfo('template_url') ?>/images/left_footer.png" alt="No Image"></td>

</tr>

</table>

</div>

</td>

</tr>

</table>

</div>

</td>

</tr>

<tr>

<td>

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_2.png" width="887" height="11"></td>

</tr>

</table>

</div>

</body>

</html>

لینک به ارسال

این کد را امتحان کنید

<!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">

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?></title>

</head>

<body>

<?php

$text="خوش آمديد!";

wp_head();

?>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="887" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac.png'); background-repeat: repeat-y; background-position: left top">

<tr>

<td>

<img border="0" src="<?php bloginfo('template_url') ?>/images/top_2.png" width="887" height="10"></td>

</tr>

<tr>

<td>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="867">

<tr>

<td>

<img border="0" src="<?php bloginfo('template_url') ?>/images/logo.jpg" width="867" height="161"></td>

</tr>

<tr>

<td>

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td><ul id="mainlevel-nav"><li><a href="<?php bloginfo('url'); ?>" class="mainlevel-nav" >صفحه اصلي</a></li><?php wp_list_pages('title_li='); ?></ul></td>

<td width="187">

<img border="0" src="<?php bloginfo('template_url') ?>/images/left_top_link.png" width="187" height="22"></td>

</tr>

</table>

</td>

</tr>

<tr>

<td>

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td width="184" valign="top" style="height: 500px">

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">

<tr>

<td>

<div class="moduletable"><h3>موضوع</h3>

<ul>

<ul>

<?php wp_list_categories('orderby=name&exclude=327,75'); ?>

</ul>

</ul>

</div>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("right") ) ?>

</td>

</tr>

</table>

</div>

</td>

<td valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td>

 

</td>

</tr>

<?php if (have_posts()) : ?>

<tr>

<td>

<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #FFEEDF">

<tr>

<td width="5" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/left.png'); height: 200px">

<img border="0" src="<?php bloginfo('template_url') ?>/images/top_left.png" alt="No Image"></img></td>

<td valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/top.png'); background-repeat: repeat-x; height: 200px">

<br/><div class="componentheading"><?php echo $text; ?></div><table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0">

<?php if (is_home()) { query_posts("cat=327,-75"); } ?>

<?php while (have_posts()) : the_post(); ?>

<?php

$postimg = get_post_meta($post->ID, "postimg", true);

$post_excerpt = $post->post_content;

?>

<tr><td valign="top" width="100%">

<table class="contentpaneopen">

<tr>

<td class="contentheading" width="100%"><?php the_title(); ?></td>

<td align="right" width="100%" class="buttonheading">

<a href="<?php the_permalink(); ?>" target="_blank" title="پيوند ثابت">

<img src="<?php bloginfo('template_url') ?>/images/link.gif" alt="پيوند ثابت" name="پيوند ثابت" align="middle" border="0" /></a>

</td>

</tr>

</table>

<table class="contentpaneopen">

<tr>

<td valign="top" colspan="2">

<div style="width:440px;"><?php the_content(''); ?></div>

<br />

برچسب:

<br />

<?php the_tags(__(' ','dnld'), __(' ','dnld'), __('','dnld')); ?>

<?php if ( !is_single() and !is_page() ) : ?><p><img src='<?php bloginfo('template_url') ?>/images/comment.gif' hspace='2' align='absmiddle' alt='' /><a href="<?php comments_link(); ?>">نظرات[<?php comments_number('0','1','%'); ?>]</a> | <?php endif; ?>دسته: <?php the_category(', ') ?> | نويسنده: <?php the_author(); ?><?php if ( !is_single() and !is_page() ) : ?> | <a class="" href="<?php the_permalink(); ?>">ادامه مطلب...</a><?php endif; ?></p>

</td>

</tr>

</table>

<?php if ( is_single() or is_page() ) { ?><?php comments_template(); ?><?php } ?>

<span class="article_seperator"> </span>

</td></tr>

<?php endwhile; ?>

</table></td></tr>

</table>

<div style="text-align:center; direction:ltr;"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>

<?php endif; ?><br>

</td>

<td width="4" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/right.png'); height: 200px">

<img border="0" src="<?php bloginfo('template_url') ?>/images/top_right.png" alt="No Image"></img></td>

</tr>

<tr>

<td width="5">

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_left.png" alt="No Image"></img></td>

<td style="background-image: url('<?php bloginfo('template_url') ?>/images/bot.png')">

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot.png" alt="No Image"></img></td>

<td width="4">

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_right.png" alt="No Image"></img></td>

</tr>

</table>

</td>

</tr>

</table>

</td>

<td width="199" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td style="height: 76px; background-image: url('<?php bloginfo('template_url') ?>/images/bac_search.png'); background-repeat: no-repeat; background-position: left top" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="199">

<tr>

<td style="height: 43px" width="199" colspan="3"> </td>

</tr>

<tr>

<td width="8"> </td>

<td width="158">

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="122">

<tr>

<td>

<table cellpadding="0" cellspacing="0" class="moduletable">

<tr>

<td>

<form action="<?php bloginfo('home'); ?>/" method="get">

<div class="search">

<input name="s" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="کلید واژه..." onblur="if(this.value=='') this.value='کلید واژه...';" onfocus="if(this.value=='کلید واژه...') this.value='';" />

</div>

</form>

</td>

</tr>

</table>

</td>

</tr>

</table>

</div>

</td>

<td width="33"> </td>

</tr>

</table>

</td>

</tr>

<tr>

<td>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">

<tr>

<td>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("left") ) ?>

</td>

</tr>

</table>

</div>

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

<tr>

<td>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="99%" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_footer.png')">

<tr>

<td width="12">

</img>

<img border="0" src="<?php bloginfo('template_url') ?>/images/right_footer.png" alt="No Image"></td>

<td class="footer" id="footer">

<p align="center"><font size="2" color="#FFDBBB">تمامي حقوق براي اين سايت محفوظ مي‌باشد. کپي برداري از اين سايت تنها با ذکر منبع مجاز مي‌باشد.</font></td>

<td width="12">

</img>

<img border="0" src="<?php bloginfo('template_url') ?>/images/left_footer.png" alt="No Image"></td>

</tr>

</table>

</div>

</td>

</tr>

</table>

</div>

</td>

</tr>

<tr>

<td>

<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_2.png" width="887" height="11"></td>

</tr>

</table>

</div>

</body>

</html>

ممنون استاد. ولی بازم نشد. نمی دونم این وردپرس چه مرگش

4~5 سال باهاش داریم زندگی می کنیم تا حالا چنین مشکلی نداشتم.

قبلا مشکلی نداشت. جدیدا اینجور شده :(

لینک به ارسال

ممنون استاد. ولی بازم نشد. نمی دونم این وردپرس چه مرگش

4~5 سال باهاش داریم زندگی می کنیم تا حالا چنین مشکلی نداشتم.

قبلا مشکلی نداشت. جدیدا اینجور شده :(

یه سوال:

شما از قالب برگه برای صفحه اصلی استفاده میکنید؟

لینک به ارسال

یه سوال:

شما از قالب برگه برای صفحه اصلی استفاده میکنید؟

نه

ولی قالبش بقدری داغونه که فقط 4تا فایل داره

1- فایل استایل

2- فایل ایندکس

3- فایل توابع

4- فایل دیدگاه

لینک به ارسال

شما این کد رو


<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts(array('paged' => $paged));
while (have_posts()):the_post();?>

جایگزین


<?php while (have_posts()) : the_post(); ?>

کنید.

بعد کد زیر رو هم


<?php wp_reset_query(); ?>

قبل از

<?php endif; ?>

اضافه کنید.

اگر که جواب نداد.

و اگر امکانش هست قالب رو ضمیمه کنید.

لینک به ارسال

ممنون درست شد. ولی دو تا مشکل.

1- من بعضی دسته های خاص رو تو صفحه اصلی نمایش می دم. برای اینکار باید چه کرد؟


<?php if (is_home()) { query_posts("cat=327,-75"); } ?>

2- تو هر صفحه یک پسته اضافه اون بالا قبل از پست های دیگه قرار می گیره.

لینک به ارسال
  • 1 سال بعد...

سلام.من همین مشکل رو دارم با این تفاوت که فایل سینگل واسم ران نمیشه.هر کاری کردم درست نشد.لطفا کمکم کنید.

قالب رو هم پیوست کردم خودتون زحمت بکشید درستش کنید.

صفحه سینگلش اصلی نیست.خودتون روی یک سینگل آزمایشی درستش کنید بهم بدید.فقط بگید روی چه تابعی انجام دادید.ممنون

absolution2.zip

ویرایش شده توسط samanfc20
لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...