رفتن به مطلب

مشکل در تنظیمات مطلب جدید


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

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

من به تازگی کار با وردپرس را شروع کردم

یک مطلبی به سایتم اضافه کردم که یک خط نوشته داره و یک عکس

در صفحه اولی خط اول را نشان میده و یک لینک ادامه مطلب

میخوام کل مطلبم بدون لینک ادامه مطلب در صفحه اول نمایش داده بشه

لطفا راهنمایی کنید

لینک به ارسال

سلام. باید قالب ویرایش بشه و در فایل content.php به جای the_excerpt() تابع the_content() استفاده بشه (البته به شرطی که در ادیتور از تگ ادامه مطلب استفاده نکنی)

اگر فایل content نداشتی کل فایل ها رو به دنبال the_excerpt جستجو کن و هرجا پیدا شد با اون یکی جایگزین کن.

برای جستجو هم اگر از notepad++ استفاده میکنی ctrl+f رو بزن و به تب find in files برو

موفق باشید.

  • امتیاز 2
لینک به ارسال

فایل در مسیر

wp-content/themes/ نام قالب شما 

قرار داره در

مرحله اول دنبال فایل index.php توی پوشه قالبتون بگردید و اگر تابعی که فرمودند رو پیدا نکردید دنبال content.php بگردید

  • امتیاز 3
لینک به ارسال

کل محتوای فایل index.php اینه

<?php get_header(); ?>
<?php
if( tie_get_option( 'slider_pos' ) == 'big')
get_template_part('includes/slider');// Get Slider template ?>
<div class="content">
<?php
if( tie_get_option( 'slider_pos' ) != 'big')
get_template_part('includes/slider'); // Get Slider template ?>
<?php
if( tie_get_option('on_home') != 'boxes' ){
get_template_part( 'loop', 'index' );
if ($wp_query->max_num_pages > 1) tie_pagenavi();
}else{
$cats = get_option( 'tie_home_cats' ) ;
if($cats)
foreach ($cats as $cat) tie_get_home_cats($cat);
else _e( 'You can use Homepage builder to build your homepage' , 'tie' );
tie_home_tabs();
}
?>
</div><!-- .content /-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

که همونطور که می بینید نه تابع

the_excerpt() داره و نه تابع the_content()

:(

و فایل content.php وجود نداره

لینک به ارسال

محتوای فایل loop.php

<?php if ( ! have_posts() ) : ?>
<div id="post-0" class="post not-found post-listing">
<h2 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h2>
<div class="entry">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p>
<?php get_search_form(); ?>
</div>
</div>
<?php else : ?>
<div class="post-listing">
<?php while ( have_posts() ) : the_post(); ?>
<?php if( tie_get_option( 'blog_display' ) != 'full_thumb' ): ?>
<article <?php tie_post_class('item-list'); ?>>
<h2 class="post-box-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php get_template_part( 'includes/archives-meta' ); ?>
<?php if( tie_get_option( 'blog_display' ) == 'content' ): ?>
<div class="entry">
<?php the_content( __( 'Read More »', 'tie' ) ); ?>
</div>
<?php else: ?>
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php the_post_thumbnail('thumbnail'); ?>
<span class="overlay-icon"></span>
</a>
</div><!-- post-thumbnail /-->
<?php endif; ?>
<div class="entry">
<p><?php tie_excerpt() ?>
<a class="more-link" href="<?php the_permalink() ?>"><?php _e( 'Read More »', 'tie' ) ?></a></p>
</div>
<?php endif; ?>
<?php if( tie_get_option( 'archives_socail' ) ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>
<div class="clear"></div>
</article><!-- .item-list -->
<?php else: ?>
<article <?php tie_post_class('item-list'); ?>>
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?>
<div class="post-thumbnail single-post-thumb archive-wide-thumb">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php tie_thumb( 'slider' ); ?><span class="overlay-icon"></span></a>
</div>
<div class="clear"></div>
<?php endif; ?>
<h2 class="post-box-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php get_template_part( 'includes/archives-meta' ); ?>
<div class="entry">
<p><?php tie_excerpt() ?>
<a class="more-link" href="<?php the_permalink() ?>"><?php _e( 'Read More »', 'tie' ) ?></a></p>
</div>
<?php if( tie_get_option( 'archives_socail' ) ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>
<div class="clear"></div>
</article><!-- .item-list -->
<?php endif; ?>

<?php endwhile;?>
</div>
<?php endif; ?>

the_excerpt() نداره کل دایرکتوری رو سرچ کردم تابع the_excerpt() استفاده نشده بود

پس حتما مشکل از یه جای دیگس

من از تگ ادامه مطلب استفاده نکردم

لینک به ارسال

منظورم اینه که پشتیبانی این نوع قالب ها در انجمن ممنوعه.

قبل از این که تاپیک ایجاد کنید و در انجمن عصو بشید لطفا قوانین رو بخونید.

برید همونجایی که قالب رو دریافت کردید مشکلتون رو مطرح کنید تا حل کنند.

ویرایش شده توسط Ghaem
  • امتیاز 3
لینک به ارسال
مهمان
این موضوع برای عدم ارسال قفل گردیده است.
×
×
  • اضافه کردن...