{"id":64309,"date":"2017-04-10T11:18:41","date_gmt":"2017-04-10T09:18:41","guid":{"rendered":"https:\/\/pl.wordpress.org\/support\/topic\/post-navigation\/"},"modified":"2017-04-10T11:18:41","modified_gmt":"2017-04-10T09:18:41","slug":"post-navigation","status":"publish","type":"topic","link":"https:\/\/pl.wordpress.org\/support\/topic\/post-navigation\/","title":{"rendered":"Post navigation"},"content":{"rendered":"<p>U mnie w motywie kod w pliku single.php dotycz\u0105cy nawigacji wygl\u0105da tak:<br \/>\n&lt;?php<br \/>\n\t\twhile ( have_posts() ) : the_post();<\/p>\n<p>\t\t\tget_template_part( 'template-parts\/content&#8217;,&#8217;single&#8217;);<\/p>\n<p>\t\t\tthe_post_navigation( array(<br \/>\n\t\t\t\t'next_text&#8217; =&gt; '&lt;span class=&#8221;meta-nav&#8221; aria-hidden=&#8221;true&#8221;&gt;&#8217; . __( 'Nast\u0119pny Post&#8217;, 'words&#8217; ) . '&lt;\/span&gt; &#8217; .<br \/>\n\t\t\t\t\t'&lt;span class=&#8221;screen-reader-text&#8221;&gt;&#8217; . __( 'Nast\u0119pny post:&#8217;, 'words&#8217; ),<br \/>\n\t\t\t\t'prev_text&#8217; =&gt; '&lt;span class=&#8221;meta-nav&#8221; aria-hidden=&#8221;true&#8221;&gt;&#8217; . __( 'Poprzedni Post&#8217;, 'words&#8217; ) . '&lt;\/span&gt; &#8217; .<br \/>\n\t\t\t\t\t'&lt;span class=&#8221;screen-reader-text&#8221;&gt;&#8217; . __( 'Poprzedni post:&#8217;, 'words&#8217; ),<br \/>\n\t\t\t) );<\/p>\n<p>\t\t\t\/\/ If comments are open or we have at least one comment, load up the comment template.<br \/>\n\t\t\tif ( comments_open() || get_comments_number() ) :<br \/>\n\t\t\t\tcomments_template();<br \/>\n\t\t\tendif;<\/p>\n<p>\t\tendwhile; \/\/ End of the loop.<br \/>\n\t\t?&gt;<br \/>\nChcia\u0142bym go zmieni\u0107 w ten spos\u00f3b, aby zamiast &#8222;poprzedni post&#8221; i &#8222;nast\u0119pny post&#8221; wy\u015bwietla\u0142 mi tytu\u0142 postu. Co tutaj trzeba zmieni\u0107? Sprawdza\u0142em w kodeksie, \u017ce kod php dla nawigacji wygl\u0105da tak:<br \/>\n&lt;?php previous_post_link( '%link&#8217;, '%title&#8217;, TRUE, &#8217; &#8217;, 'neighborhood&#8217; ); ?&gt;<br \/>\nTylko gdzie go wstawi\u0107, aby nie rozpieprzy\u0107 sobie motywu.<\/p>\n","protected":false},"template":"","class_list":["post-64309","topic","type-topic","status-publish","hentry","topic-tag-nawigacja"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/64309","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\/64309\/revisions"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=64309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}