رفتن به مطلب

حذف نوشته ای در بالای عنوان پست


WP4All

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

سلام.

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

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

پست:

http://goo.gl/l0tiM7

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

چطور میشه پاکش کرد؟

لینک به ارسال

سلام

چکیده منظورتونه؟ single.php ر وبزارید اینجا بررسی کنیم.

بله همون.

این کد های single.php :


<?php get_header(); ?>
<div class="content">
<?php tie_breadcrumbs() ?>


<?php if ( ! have_posts() ) : ?>
<div id="post-0" class="post not-found post-listing">
<h1 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h1>
<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 endif; ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php $get_meta = get_post_custom($post->ID);
if( !empty( $get_meta['tie_review_position'][0] ) ){
$review_position = $get_meta['tie_review_position'][0] ;
$rv = $tie_reviews_attr;
}

$post_width = $get_meta["tie_sidebar_pos"][0];
if( $post_width == 'full' ) $content_width = 955;
?>

<?php //Above Post Banner
if( empty( $get_meta["tie_hide_above"][0] ) ){
if( !empty( $get_meta["tie_banner_above"][0] ) ) echo '<div class="e3lan-post">' .htmlspecialchars_decode($get_meta["tie_banner_above"][0]) .'</div>';
else tie_banner('banner_above' , '<div class="e3lan-post">' , '</div>' );
}
?>

<article <?php if( !empty( $rv['review'] ) ) echo $rv['review']; post_class('post-listing'); ?>>
<?php get_template_part( 'includes/post-head' ); ?>
<div class="post-inner">
<h1 class="name post-title entry-title" itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing"><span itemprop="name"><?php the_title(); ?></span></h1>
<?php get_template_part( 'includes/post-meta' ); ?>
<div class="entry">
<?php if( ( tie_get_option( 'share_post_top' ) && empty( $get_meta["tie_hide_share"][0] ) ) || $get_meta["tie_hide_share"][0] == 'no' ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>
<?php if( !empty( $review_position ) && ( $review_position == 'top' || $review_position == 'both' ) ) echo tie_get_review('review-top'); ?>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'tie' ), 'after' => '</div>' ) ); ?>

<?php if( !empty( $review_position ) && ( $review_position == 'bottom' || $review_position == 'both' ) ) echo tie_get_review('review-bottom'); ?>
<?php edit_post_link( __( 'Edit', 'tie' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry /-->
<?php the_tags( '<span style="display:none">',' ', '</span>'); ?>
<span style="display:none" class="updated"><?php the_time('Y-m-d'); ?></span>
<?php if ( get_the_author_meta( 'google' ) ){ ?>
<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><a href="<?php the_author_meta( 'google' ); ?>?rel=author">+<?php echo get_the_author(); ?></a></strong></div>
<?php }else{ ?>
<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><?php the_author_posts_link(); ?></strong></div>
<?php } ?>

<?php if( ( tie_get_option( 'share_post' ) && empty( $get_meta["tie_hide_share"][0] ) ) || $get_meta["tie_hide_share"][0] == 'no' ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>
</div><!-- .post-inner -->
</article><!-- .post-listing -->
<?php if( tie_get_option( 'post_tags' ) ) the_tags( '<p class="post-tag">'.__( 'Tagged with: ', 'tie' ) ,' ', '</p>'); ?>

<?php //Below Post Banner
if( empty( $get_meta["tie_hide_below"][0] ) ){
if( !empty( $get_meta["tie_banner_below"][0] ) ) echo '<div class="e3lan-post">' .htmlspecialchars_decode($get_meta["tie_banner_below"][0]) .'</div>';
else tie_banner('banner_below' , '<div class="e3lan-post">' , '</div>' );
}
?>

<?php if( ( tie_get_option( 'post_authorbio' ) && empty( $get_meta["tie_hide_author"][0] ) ) || ( isset( $get_meta["tie_hide_related"][0] ) && $get_meta["tie_hide_author"][0] == 'no' ) ): ?>
<section id="author-box">
<div class="block-head">
<h3><?php _e( 'About', 'tie' ) ?> <?php the_author() ?> </h3><div class="stripe-line"></div>
</div>
<div class="post-listing">
<?php tie_author_box() ?>
</div>
</section><!-- #author-box -->
<?php endif; ?>


<?php if( tie_get_option( 'post_nav' ) ): ?>
<div class="post-navigation">
<div class="post-previous"><?php previous_post_link( '%link', '<span>'. __( 'Previous:', 'tie' ).'</span> %title' ); ?></div>
<div class="post-next"><?php next_post_link( '%link', '<span>'. __( 'Next:', 'tie' ).'</span> %title' ); ?></div>
</div><!-- .post-navigation -->
<?php endif; ?>

<?php get_template_part( 'includes/post-related' ); ?>
<?php endwhile;?>
<?php comments_template( '', true ); ?>

</div><!-- .content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

لینک به ارسال

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

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

لینک به ارسال

سلام ، قالب تجاری بوده و بحث درموردش خلاف قوانین انجمن هست.

ویرایش شده توسط علی زینلی
  • امتیاز 1
لینک به ارسال

احتمالا افزونه ای یا کدی داخل functions.php موجوده که این کارو انجام میده. غیرفعال کنید ببینید حل میشه یا نه.

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

احتمالا افزونه ای یا کدی داخل functions.php موجوده که این کارو انجام میده. غیرفعال کنید ببینید حل میشه یا نه.

همه ی پلاگین ها رو که غیر فعال کردم درست نشد پست.

یک کدی قبلا در یک جای قالب گذاشتم که در قسمت کناری سایت آخرین مطالب ارسال شده در انجمن رو نشون میداد.

این کد های functions.php . ببینید امکان داره از اینجا باشه ؟


<?php
$themename = "صحیفه";
$themefolder = "sahifa";
define ('theme_name', $themename );
define ('theme_ver' , 4 );
// Notifier Info
$notifier_name = $themename;
$notifier_url = "http://3zar.ir/xml/".$themefolder.".xml";
//Docs Url
$docs_url = "http://www.3zar.ir/?p=20255";
// Constants for the theme name, folder and remote XML url
define( 'MTHEME_NOTIFIER_THEME_NAME', $themename );
define( 'MTHEME_NOTIFIER_THEME_FOLDER_NAME', $themefolder );
define( 'MTHEME_NOTIFIER_XML_FILE', $notifier_url );
define( 'MTHEME_NOTIFIER_CACHE_INTERVAL', 43200 );
// WooCommerce
define('WOOCOMMERCE_USE_CSS', false);
add_action('woocommerce_before_main_content', 'tie_woocommerce_wrapper_start', 22);
function tie_woocommerce_wrapper_start() {
echo '<div class="post-listing"><div class="post-inner">';
}
add_action('woocommerce_after_main_content', 'tie_woocommerce_wrapper_start2', 11);
function tie_woocommerce_wrapper_start2() {
echo '</div></div>';
}
add_action('woocommerce_before_shop_loop', 'tie_woocommerce_wrapper_start3', 33);
function tie_woocommerce_wrapper_start3() {
echo '<div class="clear"></div>';
}

global $pagenow;
if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' )
add_action( 'init', 'tie_woocommerce_image_dimensions', 1 );
function tie_woocommerce_image_dimensions() {
$catalog = array(
'width' => '400', // px
'height' => '400', // px
'crop' => 1 // true
);

$single = array(
'width' => '600', // px
'height' => '600', // px
'crop' => 1 // true
);

$thumbnail = array(
'width' => '200', // px
'height' => '200', // px
'crop' => 1 // false
);

// Image sizes
update_option( 'shop_catalog_image_size', $catalog ); // Product category thumbs
update_option( 'shop_single_image_size', $single ); // Single product image
update_option( 'shop_thumbnail_image_size', $thumbnail ); // Image gallery thumbs
}

// Custom Functions
include (TEMPLATEPATH . '/custom-functions.php');
// Get Functions
include (TEMPLATEPATH . '/functions/home-cats.php');
include (TEMPLATEPATH . '/functions/home-cat-tabs.php');
include (TEMPLATEPATH . '/functions/home-cat-scroll.php');
include (TEMPLATEPATH . '/functions/home-cat-pic.php');
include (TEMPLATEPATH . '/functions/home-cat-videos.php');
include (TEMPLATEPATH . '/functions/home-recent-box.php');
include (TEMPLATEPATH . '/functions/theme-functions.php');
include (TEMPLATEPATH . '/functions/common-scripts.php');
include (TEMPLATEPATH . '/functions/banners.php');
include (TEMPLATEPATH . '/functions/widgetize-theme.php');
include (TEMPLATEPATH . '/functions/default-options.php');
include (TEMPLATEPATH . '/functions/updates.php');
include (TEMPLATEPATH . '/includes/pagenavi.php');
include (TEMPLATEPATH . '/includes/breadcrumbs.php');
include (TEMPLATEPATH . '/includes/wp_list_comments.php');
include (TEMPLATEPATH . '/includes/widgets.php');
// tie-Panel
include (TEMPLATEPATH . '/panel/shortcodes/shortcode.php');
if (is_admin()) {
include (TEMPLATEPATH . '/panel/mpanel-ui.php');
include (TEMPLATEPATH . '/panel/mpanel-functions.php');
include (TEMPLATEPATH . '/panel/category-options.php');
include (TEMPLATEPATH . '/panel/post-options.php');
include (TEMPLATEPATH . '/panel/custom-slider.php');
//include (TEMPLATEPATH . '/panel/notifier/update-notifier.php');
include (TEMPLATEPATH . '/panel/importer/tie-importer.php');
}

/*-----------------------------------------------------------------------------------*/
# Custom Admin Bar Menus
/*-----------------------------------------------------------------------------------*/
function tie_admin_bar() {
global $wp_admin_bar;

if ( current_user_can( 'switch_themes' ) ){
$wp_admin_bar->add_menu( array(
'parent' => 0,
'id' => 'mpanel_page',
'title' => 'کنترل پنل قالب صحیفه' ,
'href' => admin_url( 'admin.php?page=panel')
) );
}

}
add_action( 'wp_before_admin_bar_render', 'tie_admin_bar' );
if ( ! isset( $content_width ) ) $content_width = 618;

// with activate istall option
if ( is_admin() && isset($_GET['activated'] ) && $pagenow == 'themes.php' ) {
if( !get_option('tie_active') ){
tie_save_settings( $default_data );
update_option( 'tie_active' , theme_ver );
}
//header("Location: admin.php?page=panel");
}
add_action( 'import_done', 'wordpress_importer_init' );
function _fetch_rss_feed($url) {
while ( stristr($url, 'http') != $url )
$url = substr($url, 1);
if ( empty($url) )
return;
$rss = fetch_feed($url); $desc = ''; $link = '';
if ( ! is_wp_error($rss) ) {
$desc = esc_attr(strip_tags(@html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset'))));
$link = esc_url(strip_tags($rss->get_permalink()));
while ( stristr($link, 'http') != $link )
$link = substr($link, 1);
}
$url = esc_url(strip_tags($url));
wp_widget_rss_output($rss);
}


?>

لینک به ارسال

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

یه بار دقیق تر پستش رو ویرایش کنید...

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