Read more ucina tekst
-
Witam, mam problem ze znacznikiem read more. Problem podobnie jak tutaj:
http://pl.forums.wordpress.org/topic/ucina-tekst-nie-respektuje-znacznika-readmore?replies=18
Read more ucina mi tekst w miejscu w którym nie chcę (nie uwzględnia dodanego przeze mnie znacznika).
nie wiem jak to zastosować u siebie bo jak podmieniam ten kod to mi wywala stronę. nie wiem nawet czy podmieniam we właściwym miejscu. Pomoże mi ktoś?/* CUSTOM EXCERPTS */ function wpe_excerptlength_slide($length) { return 25; } function wpe_excerptlength_index($length) { return 70; } function wpe_excerpt($length_callback='', $more_callback='') { global $post; if(function_exists($length_callback)){ add_filter('excerpt_length', $length_callback); } if(function_exists($more_callback)){ add_filter('excerpt_more', $more_callback); } $output = get_the_excerpt(); $output = apply_filters('wptexturize', $output); $output = apply_filters('convert_chars', $output); $output = '<p>'.$output.'</p>'; echo $output; } function new_excerpt_more($more) { return '<a class="rmore" href="'. get_permalink($post->ID) . '">' . ' Czytaj Więcej ...' . '</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
Chciałbym również dodać funkcję, ażeby wpis załączał się od nowej linii, która jeszcze nie była czytana.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- Temat ‘Read more ucina tekst’ jest zamknięty na nowe odpowiedzi.