mirreza 0 ارسال شده در آذر 92 گزارش بازنشر ارسال شده در آذر 92 با سلام . دوستان کسی میتونه بگه برای اینکه جعبه دانلود در صورت نبود لینک دانلود در مطلب نشان داده نشه از چه کدی باید استفاده کنم.؟مثلا در قرار دادن اس ام اس نیاز به جعبه دانلود نیست چیکا کنم که در اون نوشته جعبه دانلود نشون داده نشه و از چه شرطی استفاده کنم؟www.mobileafzar.com نقل قول لینک به ارسال
Black_Sky 6349 ارسال شده در آذر 92 گزارش بازنشر ارسال شده در آذر 92 از حلقه سااتفاده کنید و حله و قبل و بعد باکس قرار دهید 2 نقل قول لینک به ارسال
mirreza 0 ارسال شده در آذر 92 مالک گزارش بازنشر ارسال شده در آذر 92 (ویرایش شده) میشه یکم توضیح بدید؟تمام نوشته من که جعبه دانلود نیز جزو اونه داخل حلقه است یعنی من برای جعبه دانلود و نوشته حلقه جداگانه بزارم؟<?php get_header(); ?><div id="main"> <?php include('left-sidebar.php'); ?> <!--------start content & right_sidebar-------> <?php include('right-sidebar.php');?> <!------------------start slidet----all---------> <div id="allcontent"> <!------begin content------> <div class="content"> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <div class="title-content"> <h3> <?php the_title(); ?> </h3> </div> <div class="txt-content"> <?php the_content(); ?> <div class="img-content"> <?php the_post_thumbnail();?> </div> <div class="download-box"> <h3>لینک دانلود</h3> <hr /> <?php $link = get_post_meta($post->ID, 'link', true); ?> <?php $ramz = get_post_meta($post->ID, 'ramz', true); ?> <?php $about = get_post_meta($post->ID, 'about', true); ?> <?php $size = get_post_meta($post->ID, 'size', true); ?> <?php if ($link!="") : ?> <p class="link"><a href="<?php echo $link; ?>"> لینک دانلود </a> <?php endif;if ($size!="") : ?> <p class="size">حجم فایل: <?php echo $size; ?></p> <?php endif;if ($ramz!="") : ?> <p class="ramz">پسورد فایل در صورت نیاز: <?php echo $ramz; ?></p> <?php endif;if ($about!="") : ?> <p class="abuot">توضیحات: <?php echo $about; ?></p> <?php endif; ?> </p> </div> <div class="barchasb"> <?php _e ('','framework'); ?> <?php the_tags( 'برچسبها: ', ' , ' , ''); ?> </div> </div> <?php endwhile; ?> <?php endif; ?> </div> <!------end content------> <div class="mortabet"><h4>مطالب مرتبط</h4><hr/> <?php//for use in the loop, list 5 post titles related to first tag on current post$tags = wp_get_post_tags($post->ID);if ($tags) { echo ''; $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 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php the_title(); ?> </a><br/> <?php endwhile; }}?> </div> <!---------> <div id="author"> <?php echo get_avatar(get_the_author_id(),60); ?> <div style="margin-right:70px; margin-top:-70px;">درباره نویسنده : <a href="<?php the_author_url ?>"> <?php the_author_meta('last_name'); ?> </a> <br /> <?php the_author_meta('description'); ?> </div> </div> <?php comments_template(); ?> </div> <!--------end content & right_sidebar-------> </div></div><?php get_footer(); ?> ویرایش شده آذر 92 توسط mirreza نقل قول لینک به ارسال
sajjadnajafi 568 ارسال شده در آذر 92 گزارش بازنشر ارسال شده در آذر 92 سلام بر شماکافیه شما باکس رو هم به صورت شرطی دربیارید: ینی اگر لینکی وجود داشت اونوقت باکس لینک نشون داده بشه.این رو تست کنید:<?php get_header(); ?><div id="main"> <?php include('left-sidebar.php'); ?> <!--------start content & right_sidebar-------> <?php include('right-sidebar.php');?> <!------------------start slidet----all---------> <div id="allcontent"> <!------begin content------> <div class="content"> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <div class="title-content"> <h3> <?php the_title(); ?> </h3> </div> <div class="txt-content"> <?php the_content(); ?> <div class="img-content"> <?php the_post_thumbnail();?> </div><?php if ($link!="") : ?> <div class="download-box"> <h3>لینک دانلود</h3> <hr /> <?php $link = get_post_meta($post->ID, 'link', true); ?> <?php $ramz = get_post_meta($post->ID, 'ramz', true); ?> <?php $about = get_post_meta($post->ID, 'about', true); ?> <?php $size = get_post_meta($post->ID, 'size', true); ?> <?php if ($link!="") : ?> <p class="link"><a href="<?php echo $link; ?>"> لینک دانلود </a> <?php endif;if ($size!="") : ?> <p class="size">حجم فایل: <?php echo $size; ?></p> <?php endif;if ($ramz!="") : ?> <p class="ramz">پسورد فایل در صورت نیاز: <?php echo $ramz; ?></p> <?php endif;if ($about!="") : ?> <p class="abuot">توضیحات: <?php echo $about; ?></p> <?php endif; ?> </p> </div><?php endif; ?> <div class="barchasb"> <?php _e ('','framework'); ?> <?php the_tags( 'برچسبها: ', ' , ' , ''); ?> </div> </div> <?php endwhile; ?> <?php endif; ?> </div> <!------end content------> <div class="mortabet"><h4>مطالب مرتبط</h4><hr/> <?php//for use in the loop, list 5 post titles related to first tag on current post$tags = wp_get_post_tags($post->ID);if ($tags) { echo ''; $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 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php the_title(); ?> </a><br/> <?php endwhile; }}?> </div> <!---------> <div id="author"> <?php echo get_avatar(get_the_author_id(),60); ?> <div style="margin-right:70px; margin-top:-70px;">درباره نویسنده : <a href="<?php the_author_url ?>"> <?php the_author_meta('last_name'); ?> </a> <br /> <?php the_author_meta('description'); ?> </div> </div> <?php comments_template(); ?> </div> <!--------end content & right_sidebar-------> </div></div><?php get_footer(); ?> 1 نقل قول لینک به ارسال
mirreza 0 ارسال شده در آذر 92 مالک گزارش بازنشر ارسال شده در آذر 92 کسی نیست توضیح کامل بده؟ :wacko: جواب نداد اصلا جعبه دانلود رو نشون نمیده... :unsure: نقل قول لینک به ارسال
Black_Sky 6349 ارسال شده در آذر 92 گزارش بازنشر ارسال شده در آذر 92 قوانین مشاهده کنیدصبر کنید تا پاسخ بگیریددرضمن بسته به نوع تعریف ضمینه دلخواه باید دید 3 نقل قول لینک به ارسال
Parsa 23463 ارسال شده در آذر 92 گزارش بازنشر ارسال شده در آذر 92 <?php get_header(); ?><div id="main"> <?php include('left-sidebar.php'); ?> <!--------start content & right_sidebar-------> <?php include('right-sidebar.php');?> <!------------------start slidet----all---------> <div id="allcontent"> <!------begin content------> <div class="content"> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <div class="title-content"> <h3> <?php the_title(); ?> </h3> </div> <div class="txt-content"> <?php the_content(); ?> <div class="img-content"> <?php the_post_thumbnail();?> </div><?php$link = get_post_meta($post->ID, 'link', true); if ($link!="") : ?> <div class="download-box"> <h3>لینک دانلود</h3> <hr /> <?php $ramz = get_post_meta($post->ID, 'ramz', true); ?> <?php $about = get_post_meta($post->ID, 'about', true); ?> <?php $size = get_post_meta($post->ID, 'size', true); ?> <?php if ($link!="") : ?> <p class="link"><a href="<?php echo $link; ?>"> لینک دانلود </a> <?php endif;if ($size!="") : ?> <p class="size">حجم فایل: <?php echo $size; ?></p> <?php endif;if ($ramz!="") : ?> <p class="ramz">پسورد فایل در صورت نیاز: <?php echo $ramz; ?></p> <?php endif;if ($about!="") : ?> <p class="abuot">توضیحات: <?php echo $about; ?></p> <?php endif; ?> </p> </div><?php endif; ?> <div class="barchasb"> <?php _e ('','framework'); ?> <?php the_tags( 'برچسبها: ', ' , ' , ''); ?> </div> </div> <?php endwhile; ?> <?php endif; ?> </div> <!------end content------> <div class="mortabet"><h4>مطالب مرتبط</h4><hr/> <?php//for use in the loop, list 5 post titles related to first tag on current post$tags = wp_get_post_tags($post->ID);if ($tags) { echo ''; $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 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php the_title(); ?> </a><br/> <?php endwhile; }}?> </div> <!---------> <div id="author"> <?php echo get_avatar(get_the_author_id(),60); ?> <div style="margin-right:70px; margin-top:-70px;">درباره نویسنده : <a href="<?php the_author_url ?>"> <?php the_author_meta('last_name'); ?> </a> <br /> <?php the_author_meta('description'); ?> </div> </div> <?php comments_template(); ?> </div> <!--------end content & right_sidebar-------> </div></div><?php get_footer(); ?> 3 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .