{"id":32283,"date":"2013-08-27T17:26:18","date_gmt":"2013-08-27T16:26:18","guid":{"rendered":"https:\/\/pl.wordpress.org\/support\/topic\/wyswietlanie-wpisow-w-3-kolumnach-w-formacie-1-2-3\/"},"modified":"2016-08-05T22:01:37","modified_gmt":"2016-08-05T22:01:37","slug":"wyswietlanie-wpisow-w-3-kolumnach-w-formacie-1-2-3","status":"closed","type":"topic","link":"https:\/\/pl.wordpress.org\/support\/topic\/wyswietlanie-wpisow-w-3-kolumnach-w-formacie-1-2-3\/","title":{"rendered":"Wy\u015bwietlanie wpis\u00f3w w 3 kolumnach w formacie (1-2-3)"},"content":{"rendered":"<p>Witajcie ponownie,<br \/>\nto ju\u017c chyba ostatni problem jaki napotka\u0142em podczas tworzenia sobie strony. Polega on na tym, \u017ce stworzy\u0142em widok 3 kolumnowy dzi\u0119ki dodaniu w CSS kodu:<\/p>\n<pre><code>column-count:3;\n-moz-column-count:3;\n-webkit-column-count:3;<\/code><\/pre>\n<p>Teraz pojawi\u0142 si\u0119 nast\u0119pny problem. Moje wpisy w tych kolumnach wy\u015bwietlaj\u0105 si\u0119 w formacie (1-1-1) a ja chcia\u0142bym aby si\u0119 nie powtarza\u0142y i wy\u015bwietla\u0142y w formacie (1-2-3). Przedstawi\u0142em to na rysunku https:\/\/i.imgur.com\/5d6QVk8.png.<br \/>\nDodam, \u017ce kolumna wy\u015bwietla si\u0119 po za g\u0142\u00f3wn\u0105 p\u0119tl\u0105, a kod dla wpisu w kolumnie jest taki:<\/p>\n<pre><code>&lt;?php\n$recent = new WP_Query();\n$recent-&gt;query(&#039;showposts=1&#039;);\nif($recent-&gt;have_posts()) : while($recent-&gt;have_posts()): $recent-&gt;the_post();\n?&gt;\n&lt;div class=&quot;post_image_th&quot;&gt;\n&lt;?php the_post_thumbnail(&#039;mainImageCropped&#039;); ?&gt;\n&lt;\/div&gt;\n&lt;div class=&quot;post_content_spot&quot;&gt;\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\n&lt;?php the_excerpt(); ?&gt;\n&lt;ul&gt;\n&lt;li class=&quot;user&quot;&gt;&lt;?php echo get_avatar( get_the_author_meta( &#039;ID&#039; ), 32 ); ?&gt;&lt;?php the_author_posts_link(); ?&gt;&lt;\/li&gt;\n&lt;li class=&quot;comments&quot;&gt;&lt;?php comments_popup_link(&#039;0 comments &#187;&#039;, &#039;1 comment &#187;&#039;, &#039;% comments &#187;&#039;); ?&gt;&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;?php endwhile ?&gt;\n&lt;?php else : ?&gt;\n&lt;p&gt; Nothing found &lt;\/p&gt;\n&lt;?php endif ?&gt;<\/code><\/pre>\n<p>Bardzo prosz\u0119 o pomoc. Je\u017celi czego\u015b nie wyt\u0142umaczy\u0142em, to prosz\u0119 napisa\u0107.<\/p>\n","protected":false},"template":"","class_list":["post-32283","topic","type-topic","status-closed","hentry","topic-tag-format","topic-tag-kolumny","topic-tag-wpisy"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/32283","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\/32283\/revisions"}],"wp:attachment":[{"href":"https:\/\/pl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=32283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}