chem 61 ارسال شده در دی 99 گزارش بازنشر ارسال شده در دی 99 (ویرایش شده) قالب من وقتی موقع انتشار مطلب دکمه readmore میزارم اما در نوشته هام نشون نمیده این بخشی از قالب هست که مربوط به همین بخشه و من کدش تغییر دادم اما مشکلی که وجود داره اینه که وقتی روی دکمه ادامه کلیک می کنیم این عبارت انتهای لینک نوشته میاد /#more-1205 <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> </a> </div> <div class="post-head"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> </div> <div class="posted"> <div class="posted-item"><i class="fa fa-calendar"></i> <?php the_time(get_option('date_format')); ?> </div> <div class="posted-item"><i class="fa fa-user"></i> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a> </div> <div class="posted-item"><i class="fa fa-folder-open"></i> <div class="post-single-categories"><?php the_category(); ?> </div></div> </div> <div class="post-content"> <div class="post-content"><?php the_content('Read More..');?> </div> </div> </article> <?php endwhile; ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </div> کد اولیه همین بخش در فایل index.php به شرح زیر است <div class="col-md-<?php echo esc_attr($downloadColumn); ?>"> <div class="posts-wrapper"> <?php if ( have_posts() ) : ?> <?php /* The loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post-item"> <div class="featured-badge"><span><i class="fa fa-check-circle-o"></i></span></div> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> </a> </div> <div class="post-head"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> </div> <div class="posted"> <div class="posted-item"><?php the_time(get_option('date_format')); ?> <span class="separator">|</span> </div> <div class="posted-item"><a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a><span class="separator">|</span></div> <div class="posted-item"><div class="post-single-categories"><?php the_category(); ?> </div></div> </div> <div class="post-content"> <?php the_excerpt(); ?> </div> </div> </article> <?php endwhile; ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </div> من می خوام در انتهای متنم یه متن بزارم که مثلا read more که لینک خود پست داشته باشه ویرایش شده دی 99 توسط chem نقل قول لینک به ارسال
Morteza 34190 ارسال شده در دی 99 گزارش بازنشر ارسال شده در دی 99 سلام بهتره از نوشته تون آدرسی بدید که در عمل خروجی رو ببینیم. 1 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .