{"id":24601,"date":"2013-02-07T18:58:34","date_gmt":"2013-02-07T17:58:34","guid":{"rendered":"https:\/\/pl.wordpress.org\/support\/topic\/read-more-ucina-tekst\/"},"modified":"2016-08-05T21:54:07","modified_gmt":"2016-08-05T21:54:07","slug":"read-more-ucina-tekst","status":"closed","type":"topic","link":"https:\/\/pl.wordpress.org\/support\/topic\/read-more-ucina-tekst\/","title":{"rendered":"Read more ucina tekst"},"content":{"rendered":"<p>Witam, mam problem ze znacznikiem read more. Problem podobnie jak tutaj:<br \/>\nhttps:\/\/pl.forums.wordpress.org\/topic\/ucina-tekst-nie-respektuje-znacznika-readmore?replies=18<br \/>\nRead more ucina mi tekst w miejscu w kt\u00f3rym nie chc\u0119 (nie uwzgl\u0119dnia dodanego przeze mnie znacznika).<br \/>\nnie wiem jak to zastosowa\u0107 u siebie bo jak podmieniam ten kod to mi wywala stron\u0119. nie wiem nawet czy podmieniam we w\u0142a\u015bciwym miejscu. Pomo\u017ce mi kto\u015b? <\/p>\n<pre><code>\/* CUSTOM EXCERPTS *\/\n\nfunction wpe_excerptlength_slide($length) {\n    return 25;\n}\nfunction wpe_excerptlength_index($length) {\n    return 70;\n}\n\nfunction wpe_excerpt($length_callback=&#039;&#039;, $more_callback=&#039;&#039;) {\n    global $post;\n    if(function_exists($length_callback)){\n        add_filter(&#039;excerpt_length&#039;, $length_callback);\n    }\n    if(function_exists($more_callback)){\n        add_filter(&#039;excerpt_more&#039;, $more_callback);\n    }\n    $output = get_the_excerpt();\n    $output = apply_filters(&#039;wptexturize&#039;, $output);\n    $output = apply_filters(&#039;convert_chars&#039;, $output);\n    $output = &#039;&lt;p&gt;&#039;.$output.&#039;&lt;\/p&gt;&#039;;\n    echo $output;\n}\n\nfunction new_excerpt_more($more) {\nreturn &#039;&lt;a class=&quot;rmore&quot; href=&quot;&#039;. get_permalink($post-&gt;ID) . &#039;&quot;&gt;&#039; . &#039;\u00a0\u00a0 Czytaj Wi\u0119cej ...&#039; . &#039;&lt;\/a&gt;&#039;;\n}\nadd_filter(&#039;excerpt_more&#039;, &#039;new_excerpt_more&#039;);<\/code><\/pre>\n<p>Chcia\u0142bym r\u00f3wnie\u017c doda\u0107 funkcj\u0119, a\u017ceby wpis za\u0142\u0105cza\u0142 si\u0119 od nowej linii, kt\u00f3ra jeszcze nie by\u0142a czytana.<\/p>\n","protected":false},"template":"","class_list":["post-24601","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/24601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/24601\/revisions"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=24601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}