sokoot67 7 ارسال شده در بهمن 91 گزارش بازنشر ارسال شده در بهمن 91 سلامنمی دونم چرا عنوان مطلب در بالای مطلب عنوان یک مطلب دیگه هیت و هر بار refresh کردن عنوان یک مطلب دیگه رو میارهمثلا در سایت مطلب در مورد وردپرس چیست باز می کنی مطلب همون عنوان در نوار عنوان هم همون عنوان ورد پرس چیست ولی در بالای متن عنوان یک مطلب دیگه استاین هم کد فایلممنون<?php include(TEMPLATEPATH . '/header.php');if (have_posts()) : while (have_posts()) : the_post();foreach((get_the_category()) as $category) {$cat=$category->cat_ID ;}?><?php endwhile; ?> <?php endif; ?><?php global $date; $date=date('m/j'); ?><div class="white"><div id="col3" class="cls"> <?php include (TEMPLATEPATH . '/leftsbar2.php'); ?><div class="right"><div class="box3 rad8"><div class="title cls"><div class="title cls"><h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','dnld'); ?><?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1></div><div class="content" id="cms-body"><?php the_content(__('','dnld')); ?><div align="center"><font style="background-color: #ffffff;" color="#0060ff" size="4"> <blink><strong>با نظراتتون به ما دلگرمی بدهید...</strong></blink></font><span style="background-color: #0099FF"><br></span></div></div><div style="text-align: center; margin: 5px;"><div style="text-align: center;"><center><?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(4) ) : else : ?> <?php endif; ?></div></div><div class="box2"><div style="padding: 5px; text-align: right;">ارسال شده در <span class="tc2"><?php echo jdate('l j F Y'); ?></span> و <span class="tc2"><?php echo jdate('G:i'); ?></span></div></div><div class="info"><img border="0" src="<?php bloginfo('template_directory'); ?>/images/author.png"> نویسنده :<?php the_author_nickname(); ?> <img border="0" src="<?php bloginfo('template_directory'); ?>/images/view.png"> تعداد بازدید : <?php setPostViews(get_the_ID()); ?><?php echo getPostViews(get_the_ID()); ?> <img border="0" src="<?php bloginfo('template_directory'); ?>/images/cat-gory.png">دسته بندی : <?php the_category(' , ')?><g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone></br></div><?php if (have_posts()) : while (have_posts()) : the_post(); ?><div class="box2"><table border="0"> <tr> <td><font style="font-weight: bold; color: rgb(204, 51, 204);" size="3"><span style="font-family: times new roman,times,serif;">اشتراک گذاری این مطلب در :</span></font> </td> <td><div class="bor"> <a href="http://balatarin.com/links/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title() ?><br />" rel="nofollow" target="_blank"><div class="parent-icon-menu" style="width:26px;height:26px;background-position:-1330px -46px;background-repeat:no-repeat;" alt="بالاترین" title="اشتراک گذاری در بالاترین" > </div></div></a></td> <td><div class="bor"> <a href="http://www.cloob.com/share/link/add?url=[Post_Link]&title=[Post_Title]" target="_blank" title="اشتراک گذاري در کلوب" ><div class="parent-icon-menu" style="width:26px;height:26px;background-position:-1393px -46px;background-repeat:no-repeat;" alt="کلوب" title="اشتراک گذاری در کلوب" > </div></div></a> </td> <td><div class="bor"> <a href="http://twitter.com/home?status=[Post_Title] - [Post_Link]" target="_blank" rel="nofollow" title="اشتراک در توييتر" ><div class="parent-icon-menu" style="width:26px;height:26px;background-position:-1300px -46px;background-repeat:no-repeat;" alt="تویتر" title="اشتراک گذاری در تویتر" > </div></div></a></td> <td><div class="bor"> <a href="http://facebook.com/sharer.php?u=[Post_Link]&t=[Post_Title]" target="_blank" rel="nofollow" title="اشتراک گذاري در Facebook" ><div class="parent-icon-menu" style="width:26px;height:28px;background-position:-1002px -45px;background-repeat:no-repeat;" alt="فیس بوک" title="اشتراک گذاری در فیس بوک" > </div></div></a></td> <td><div class="bor"> <a href="http://google.com/bookmarks/mark?op=add&bkmk=[Post_Link]&title=[Post_Title]" target="_blank" rel="nofollow" title="اشتراک گذاري در Google Bookmarks" ><div class="parent-icon-menu" style="width:28px;height:27px;background-position:-1521px -45px;background-repeat:no-repeat;" alt="گوگل" title="اشتراک گذاری در Google Bookmarks" > </div></div></a></td> <td><div class="bor"> <a href="http://www.google.com/reader/link?url=[Post_Link]&title=[Post_Title]&srcURL=[Post_Link]" target="_blank" rel="nofollow" title="اشتراک گذاري در Google Buzz" ><div class="parent-icon-menu" style="width:28px;height:27px;background-position:-1359px -46px;background-repeat:no-repeat;" alt="گوگل " title="اشتراک گذاری در Google Buzz" > </div></div></a></td> <td><div class="bor"> <a href="http://digg.com/submit?phase=2&url=[Post_Link]&title=[Post_Title]" target="_blank" rel="nofollow" title="اشتراک گذاري در Digg" ><div class="parent-icon-menu" style="width:28px;height:27px;background-position:-1453px -46px;background-repeat:no-repeat;" alt="دیگ" title="اشتراک گذاری در دیگ" > </div></div></a></td> <td><div class="bor"> <a href="ymsgr:im?msg=ino bebin - [Post_Link] - [Post_Title]" target="_blank" rel="nofollow" title="اشتراک گذاري در ياهو مسنجر" ><div class="parent-icon-menu" style="width:28px;height:27px;background-position:-1030px -45px;background-repeat:no-repeat;" alt="یاهو مسنجر" title="اشتراک گذاری در یاهو مسنجر" > </div></div></a></td> <td><div class="bor"> <a href="http://technorati.com/faves?add=[Post_Link]&title=[Post_Title]" target="_blank" rel="nofollow" title="اشتراک گذاري در Technorati" ><div class="parent-icon-menu" style="width:26px;height:26px;background-position:-1298px -46px;background-repeat:no-repeat;" alt="تک" title="اشتراک گذاری در Technorati" > </div></div></a></td> <td><div class="bor"> <a href="http://friendfeed.com/share?title=[Post_Title]&url=[Post_Link]" target="_blank" rel="nofollow" title="اشتراک گذاري در FriendFeed" ><div class="parent-icon-menu" style="width:28px;height:27px;background-position:-1487px -46px;background-repeat:no-repeat;" alt="فرند فید" title="اشتراک گذاری در فرند فید" > </div></div></a></td> <td><div class="bor"> <a href="mailto:?subject=<?php the_title() ?>&body=سلام من از این مطلب لذت بردم، پیشنهاد می کنم شما هم بخوانید <?php the_permalink() ?>" rel="nofollow" target="_blank" ><div class="parent-icon-menu" style="width:28px;height:27px;background-position:-1066px -45px;background-repeat:no-repeat;" alt="ایمیل" title="ایمیل این مطلب به دوستان" > </div></div></a></td> </tr></table></div><div class="box2"><div class="bahman">مطالب مرتبط:<br><div style="padding: 5px 20px;"><?php$tags = wp_get_post_tags($post->ID);if ($tags) { $first_tag = $tags[0]->term_id; $args=array( 'tag__in' => array($first_tag), 'post__not_in' => array($post->ID), 'showposts'=>5, 'caller_get_posts'=>1 ); $rel_posts = new WP_Query($args); if( $rel_posts->have_posts() ) { while ($rel_posts->have_posts()) : $rel_posts->the_post(); ?><div class="rel_posts"><div class="rel_link"><li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></li></div></div><?phpendwhile;}}?><div class="clearer"></div></div></div></div><div class="info"><?php comments_template(); // Get wp-comments.php template ?></div></div></div></div></div><?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?> <?php endif; ?><?php endwhile; else: ?><h2 class="center"><?php _e('یافت نشد !'); ?></h2><p class="center"><?php _e('متأسفانه جستجوی شما نتیجه ای در بر نداشت.'); ?></p><?php endif; ?><?php wp_footer(); ?></div><?php include(TEMPLATEPATH . '/footer.php'); ?></div></div><?php get_footer(); ?></div></div> نقل قول لینک به ارسال
Parsa 23463 ارسال شده در بهمن 91 گزارش بازنشر ارسال شده در بهمن 91 محتوای فایل leftsbar2 را اینجا قرار دهید نقل قول لینک به ارسال
sokoot67 7 ارسال شده در بهمن 91 مالک گزارش بازنشر ارسال شده در بهمن 91 محتوای فایل leftsbar2 را اینجا قرار دهیدمطالب تصادفی هست<div class="left1"><div class="sidebar-box3"><ul><?php$args = array( 'numberposts' => 18, 'orderby' => 'rand' );$rand_posts = get_posts( $args );foreach( $rand_posts as $post ) : ?><li class="clearfix"><div class="kadr1"> <div class="tab-thumb"> <a href="<?php the_permalink(); ?>" class="thumb"> <?php if( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { the_post_thumbnail('thumbnail'); ?> <?php } else { ?> <div class="tab-thumbnail"></div> <?php } ?> </a> </div> <h3 class="entry-title"> <a href="<?php the_permalink(); ?>" class="title"><?php the_title(); ?></a> <span style="font-size:10px;color: red;"></span></h3> <div class="entry-meta entry-header"> </div></div> </li><?php endforeach; ?></ul></div></div> نقل قول لینک به ارسال
Parsa 23463 ارسال شده در بهمن 91 گزارش بازنشر ارسال شده در بهمن 91 در فایل سایدبار این خط را:<?php endforeach; ?>با کد زیر جایگزین کنید<?php endforeach;wp_reset_query();wp_reset_postdata();?> 2 نقل قول لینک به ارسال
sokoot67 7 ارسال شده در بهمن 91 مالک گزارش بازنشر ارسال شده در بهمن 91 آقا ممنون ردیف شد نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .