wmaraci reklam

WordPress sayfa içindeki yazıların ön izlemede hepsinin gözükmemesi...

7 Mesajlar 691 Okunma
pst.net
wmaraci reklam

AppendiX AppendiX [root@linux ~]$ Kullanıcı
  • Üyelik 10.04.2013
  • Yaş/Cinsiyet 38 / E
  • Meslek Software Developer
  • Konum Çanakkale
  • Ad Soyad O** Ö**
  • Mesajlar 347
  • Beğeniler 128 / 91
  • Ticaret 4, (%100)
Merhaba,
bir sorun var çözemedim anlayan bilen varsa yardımcı olursa sevinirim.

Sorunum şu ;
WordPress sayfa içindeki yazıların ön izlemede hepsini gözükmüyor. Belli bir kısmına kadar gözüküyor ve yan yana gözüküyor normal düz yazı gibi sonunda da ... bu 3 nokta var. Nasıl çözebilirim ?

Şimdiden tşkler.
 

 

wmaraci
reklam

MDSALMAN MDSALMAN Marine Group E-Mail Onaysız
  • Üyelik 09.04.2013
  • Yaş/Cinsiyet 33 / E
  • Meslek Bilgisayar Prgramcılıgı,webmas
  • Konum İstanbul Anadolu
  • Ad Soyad A** S**
  • Mesajlar 558
  • Beğeniler 111 / 89
  • Ticaret 0, (%0)
Siteni gonder
 

 

AppendiX AppendiX [root@linux ~]$ Kullanıcı
  • Üyelik 10.04.2013
  • Yaş/Cinsiyet 38 / E
  • Meslek Software Developer
  • Konum Çanakkale
  • Ad Soyad O** Ö**
  • Mesajlar 347
  • Beğeniler 128 / 91
  • Ticaret 4, (%100)
Kimse yok mu yardımcı olabilecek ?
 

 

AhmetCakmak34 AhmetCakmak34 WM Aracı Kullanıcı
  • Üyelik 10.01.2014
  • Yaş/Cinsiyet 27 / E
  • Meslek Bilgisayar mühendisi
  • Konum İstanbul Anadolu
  • Ad Soyad A** Ç**
  • Mesajlar 2472
  • Beğeniler 934 / 1174
  • Ticaret 41, (%100)
Yanlış hatırlamıyorsam tema klasörüne ait function.php veya temaya özel tanımlı bir dosyada bu tanımlı oluyor. Excerpt Length olarak geçiyor Wordpress dökümanlarında. Yani temanızın dosyaları içerisinde bulmanız gerek diye hatırlıyorum.

Şurada da geçiyor: https://beginnersbook.com/2013/09/change-post-excerpt-length-wordpress/

Manuel yöntem:

Open the theme’s functions.php file and add the below code. It would change the default limit of 55 words to the new words limit of 120.

/* New excerpt length of 120 words*/
function my_excerpt_length($length) {
return 120;
}
add_filter('excerpt_length', 'my_excerpt_length');


If you are not ok with the limit of 120, you can change to to any integer number you like. For example, if you want the excerpt length of 150 words rather than 120 then the above code can be re-written as:

/* Changed excerpt length to 150 words*/
function my_excerpt_length($length) {
return 150;
}
add_filter('excerpt_length', 'my_excerpt_length');
AppendiX

kişi bu mesajı beğendi.

wmaraci
Mersin evden eve nakliyat

AppendiX AppendiX [root@linux ~]$ Kullanıcı
  • Üyelik 10.04.2013
  • Yaş/Cinsiyet 38 / E
  • Meslek Software Developer
  • Konum Çanakkale
  • Ad Soyad O** Ö**
  • Mesajlar 347
  • Beğeniler 128 / 91
  • Ticaret 4, (%100)
Bendeki functions.php içeriği şu şekilde :

// Register Custom Navigation Walker
require_once get_template_directory() . '/wp-bootstrap-navwalker.php';


if (function_exists('register_sidebar'))
register_sidebar( array(
'name' => __( 'Sidebar', 'mysite' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '

',
'after_title' => '

',
) );


/**
* Enable Custom Logo in Appearance > Customize
*/
add_theme_support( 'custom-logo' );

/**
* Custom function for displaying the logo
*/
function sage_custom_logo() {
if ( function_exists( 'the_custom_logo' ) ) {
$custom_logo = '' . get_bloginfo( 'name' ) . '';
echo $custom_logo;
}
}
/*POPULER YAZILAR*/
add_theme_support( 'post-thumbnails');
set_post_thumbnail_size( 640,250,true);
add_image_size('single-post-thumbnail', 640,250 );

/* POPULER YAZILAR */
function wpb_set_post_views($postID) {
$count_key = 'wpb_post_views_count';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
$count = 0;
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
}else{
$count++;
update_post_meta($postID, $count_key, $count);
}
}
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
/* #POPULER YAZILAR */


?>
 

 

AppendiX AppendiX [root@linux ~]$ Kullanıcı
  • Üyelik 10.04.2013
  • Yaş/Cinsiyet 38 / E
  • Meslek Software Developer
  • Konum Çanakkale
  • Ad Soyad O** Ö**
  • Mesajlar 347
  • Beğeniler 128 / 91
  • Ticaret 4, (%100)
Sorun cgrclk tarafından çözülmüştür.

Eline emeğine sağlık, teşekkür ederim.
cgrclk

kişi bu mesajı beğendi.

cgrclk cgrclk Fortis Fortuna Adiuvat Kullanıcı
  • Üyelik 18.11.2011
  • Yaş/Cinsiyet 34 / E
  • Meslek Web Developer
  • Konum İstanbul Avrupa
  • Ad Soyad B** Ç**
  • Mesajlar 3270
  • Beğeniler 1014 / 1983
  • Ticaret 53, (%100)
the_content yerine the_excerpt konulmuş, aynı sorunla karşılaşan olursa.
AppendiX

kişi bu mesajı beğendi.

Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al