wmaraci reklam

Yazı ve Sayfa İçerikleri 2 Kez Çıkıyor Nasıl Düzeltebilirim

4 Mesajlar 558 Okunma
pst.net
wmaraci reklam

mert47 mert47 Seversin... Kullanıcı
  • Üyelik 25.01.2014
  • Yaş/Cinsiyet 31 / E
  • Meslek Akademik
  • Konum İstanbul Avrupa
  • Ad Soyad M** A**
  • Mesajlar 460
  • Beğeniler 559 / 158
  • Ticaret 2, (%100)
Merhabalar;

Yazı ve sayfalardaki içerikler peşpeşe responsive olarak 2 defa çıkıyor. Bu sorunu nasıl çözebiliriz?
 

 

fmoyuncusu.com
wmaraci
reklam

wpuzman wpuzman WordPress Developer Kullanıcı
  • Üyelik 13.01.2017
  • Yaş/Cinsiyet 32 / E
  • Meslek Yazılım
  • Konum Trabzon
  • Ad Soyad B** M**
  • Mesajlar 2773
  • Beğeniler 293 / 949
  • Ticaret 33, (%100)
index.php de her yazı 2 kez çağrılıyordur. dosyayı burdan gönderin bakalım.
mert47

kişi bu mesajı beğendi.

Query Query Üyeliği Durdurulmuş Banlı Kullanıcı
  • Üyelik 18.08.2017
  • Yaş/Cinsiyet 37 / E
  • Meslek Yazılımcı
  • Konum Samsun
  • Ad Soyad Y** M**
  • Mesajlar 40
  • Beğeniler 51 / 10
  • Ticaret 0, (%0)
aynen gönderin baksın bilimokur
 

 

mert47 mert47 Seversin... Kullanıcı
  • Üyelik 25.01.2014
  • Yaş/Cinsiyet 31 / E
  • Meslek Akademik
  • Konum İstanbul Avrupa
  • Ad Soyad M** A**
  • Mesajlar 460
  • Beğeniler 559 / 158
  • Ticaret 2, (%100)

if ( get_option( 'page_for_posts' ) ) {
MedicareTheme::$boldthemes_page_for_header_id = get_option( 'page_for_posts' );
}

get_header();

if ( have_posts() ) {

while ( have_posts() ) {

the_post();

$images = boldthemes_rwmb_meta( BoldThemesPFX . '_images', 'type=image' );
if ( $images == null ) $images = array();
$video = boldthemes_rwmb_meta( BoldThemesPFX . '_video' );
$audio = boldthemes_rwmb_meta( BoldThemesPFX . '_audio' );

$link_title = boldthemes_rwmb_meta( BoldThemesPFX . '_link_title' );
$link_url = boldthemes_rwmb_meta( BoldThemesPFX . '_link_url' );
$quote = boldthemes_rwmb_meta( BoldThemesPFX . '_quote' );
$quote_author = boldthemes_rwmb_meta( BoldThemesPFX . '_quote_author' );

$permalink = get_permalink();

$post_format = get_post_format();

$media_html = '';

if ( has_post_thumbnail() ) {

$post_thumbnail_id = get_post_thumbnail_id( get_the_ID() );
$img = wp_get_attachment_image_src( $post_thumbnail_id, 'large' );

if ( $img != '' ) {
$media_html = boldthemes_get_media_html( 'image', array( $permalink, $img[0] ) );
}

}

if ( $post_format == 'image' ) {

foreach ( $images as $img ) {
$img = wp_get_attachment_image_src( $img['ID'], 'large' );
$media_html = boldthemes_get_media_html( 'image', array( $permalink, $img[0] ) );
break;
}

} else if ( $post_format == 'gallery' ) {

if ( count( $images ) > 0 ) {
$images_ids = array();
foreach ( $images as $img ) {
$images_ids[] = $img['ID'];
}
$media_html = boldthemes_get_media_html( 'gallery', array( $images_ids ) );
}

} else if ( $post_format == 'video' ) {

$media_html = boldthemes_get_media_html( 'video', array( $video ) );

} else if ( $post_format == 'audio' ) {

$media_html = boldthemes_get_media_html( 'audio', array( $audio ) );

} else if ( $post_format == 'link' ) {

$media_html = boldthemes_get_media_html( 'link', array( $link_url, $link_title ) );

} else if ( $post_format == 'quote' ) {

$media_html = boldthemes_get_media_html( 'quote', array( $quote, $quote_author ) );

}

$content_html = apply_filters( 'the_content', get_the_content( '', false ) );
$content_html = str_replace( ']]>', ']]>', $content_html );

$categories = get_the_category();
$categories_html = '';
if ( $categories ) {
$categories_html = '';
foreach ( $categories as $cat ) {
$categories_html .= '' . esc_html( $cat->name ) . '';
}
$categories_html .= '
';
}

if ( is_search() ) $share_html = '';

$blog_author = boldthemes_get_option( 'blog_author' );
$blog_date = boldthemes_get_option( 'blog_date' );

$blog_side_info = boldthemes_get_option( 'blog_side_info' );
$blog_list_view = boldthemes_get_option( 'blog_list_view' );

$blog_use_dash = boldthemes_get_option( 'blog_use_dash' );

$class_array = array( 'btArticleListItem', 'animate', 'animate-fadein', 'animate-moveup', 'gutter' );

if ( $blog_side_info ) $class_array[] = 'btHasAuthorInfo';
if ( $media_html != '' ) $class_array[] = 'wPhoto';

$author_url = get_author_posts_url( get_the_author_meta( 'ID' ) );
$author_html = '' . esc_html( get_the_author() ) . '';

$comments_open = comments_open();
$comments_number = get_comments_number();
$show_comments_number = true;
if ( ! $comments_open && $comments_number == 0 ) {
$show_comments_number = false;
}

$post_type = get_post_type();

//$content_final_html = get_post()->post_excerpt != '' ? '

' . esc_html( get_the_excerpt() ) . '

' : $content_html;
$content_final_html = get_post()->post_excerpt != '' || is_search() ? '

' . esc_html( get_the_excerpt() ) . '

' : $content_html;

if ( boldthemes_get_option( 'blog_list_view' ) == 'columns' ) {
include( get_template_directory() . '/views/post-list-columns.php' );
} else {
include( get_template_directory() . '/views/post-list-standard.php' );
}

}

boldthemes_pagination();

} else {
if ( is_search() ) { ?>


" . esc_html__( 'Back to homepage', 'medicare' )."", 'medium', '', '', '' ) ?>


}

?>


get_footer();

?>


İndex.php bu şekilde bilimokur
 

 

fmoyuncusu.com
wmaraci
Mersin evden eve nakliyat
wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al