{"id":54212,"date":"2015-11-19T16:39:33","date_gmt":"2015-11-19T15:39:33","guid":{"rendered":"https:\/\/pl.wordpress.org\/support\/topic\/ustawienie-na-stronie-glownej\/"},"modified":"2016-08-05T22:14:56","modified_gmt":"2016-08-05T22:14:56","slug":"ustawienie-na-stronie-glownej","status":"publish","type":"topic","link":"https:\/\/pl.wordpress.org\/support\/topic\/ustawienie-na-stronie-glownej\/","title":{"rendered":"ustawienie na stronie g\u0142ownej"},"content":{"rendered":"<p>Mam problem z ustawieniem wy\u015bwietlania post\u00f3w na stronie g\u0142ownej. Wy\u015bwitla sie ca\u0142y link a chcia\u0142a bym aby po fragmencie by\u0142 odno\u015bnik:&#8221;czytaj dalej&#8221; itp. <\/p>\n<p>Tak wyglada index php strony g\u0142ownej. Z g\u00f3ry dzi\u0119kuj\u0119 za pomoc:)<\/p>\n<p>&lt;?php get_header(); ?&gt;<\/p>\n<p>&lt;div class=&#8221;wrapper section-inner&#8221;&gt;<\/p>\n<p>\t&lt;div class=&#8221;content left&#8221;&gt;<\/p>\n<p>\t\t&lt;?php if (have_posts()) : ?&gt;<\/p>\n<p>\t\t\t&lt;div class=&#8221;posts&#8221;&gt;<\/p>\n<p>\t\t\t\t&lt;?php<br \/>\n\t\t\t\t$paged = (get_query_var(&#8217;paged&#8217;)) ? get_query_var(&#8217;paged&#8217;) : 1;<br \/>\n\t\t\t\t$total_post_count = wp_count_posts();<br \/>\n\t\t\t\t$published_post_count = $total_post_count-&gt;publish;<br \/>\n\t\t\t\t$total_pages = ceil( $published_post_count \/ $posts_per_page );<\/p>\n<p>\t\t\t\tif ( &#8222;1&#8221; &lt; $paged ) : ?&gt;<\/p>\n<p>\t\t\t\t\t&lt;div class=&#8221;page-title&#8221;&gt;<\/p>\n<p>\t\t\t\t\t\t&lt;h4&gt;&lt;?php printf( __(&#8217;Page %s of %s&#8217;, 'hemingway&#8217;), $paged, $wp_query-&gt;max_num_pages ); ?&gt;&lt;\/h4&gt;<\/p>\n<p>\t\t\t\t\t&lt;\/div&gt;<\/p>\n<p>\t\t\t\t\t&lt;div class=&#8221;clear&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>\t\t\t\t&lt;?php endif; ?&gt;<\/p>\n<p>\t\t    \t&lt;?php while (have_posts()) : the_post(); ?&gt;<\/p>\n<p>\t\t\t\t\t&lt;div id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221; &lt;?php post_class(); ?&gt;&gt;<\/p>\n<p>\t\t\t    \t\t&lt;?php get_template_part( 'content&#8217;, get_post_format() ); ?&gt;<\/p>\n<p>\t\t    \t\t&lt;\/div&gt; &lt;!&#8211; \/post &#8211;&gt;<\/p>\n<p>\t\t        &lt;?php endwhile; ?&gt;<\/p>\n<p>\t\t\t&lt;?php endif; ?&gt;<\/p>\n<p>\t\t&lt;\/div&gt; &lt;!&#8211; \/posts &#8211;&gt;<\/p>\n<p>\t\t&lt;?php if ( $wp_query-&gt;max_num_pages &gt; 1 ) : ?&gt;<\/p>\n<p>\t\t\t&lt;div class=&#8221;post-nav archive-nav&#8221;&gt;<\/p>\n<p>\t\t\t\t&lt;?php echo get_next_posts_link( __(&#8217;&laquo; Older&lt;span&gt; posts&lt;\/span&gt;&#8217;, 'hemingway&#8217;)); ?&gt;<\/p>\n<p>\t\t\t\t&lt;?php echo get_previous_posts_link( __(&#8217;Newer&lt;span&gt; posts&lt;\/span&gt; &raquo;&#8217;, 'hemingway&#8217;)); ?&gt;<\/p>\n<p>\t\t\t\t&lt;div class=&#8221;clear&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>\t\t\t&lt;\/div&gt; &lt;!&#8211; \/post-nav archive-nav &#8211;&gt;<\/p>\n<p>\t\t&lt;?php endif; ?&gt;<\/p>\n<p>\t&lt;\/div&gt; &lt;!&#8211; \/content.left &#8211;&gt;<\/p>\n<p>\t&lt;?php get_sidebar(); ?&gt;<\/p>\n<p>\t&lt;div class=&#8221;clear&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;\/div&gt; &lt;!&#8211; \/wrapper &#8211;&gt;<\/p>\n<p>&lt;?php get_footer(); ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-54212","topic","type-topic","status-publish","hentry","topic-tag-strona-glowna","topic-tag-szablon"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/54212","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\/54212\/revisions"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=54212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}