{"id":2085,"date":"2014-10-18T21:23:27","date_gmt":"2014-10-18T21:23:27","guid":{"rendered":"http:\/\/musilda.cz\/?p=2085"},"modified":"2014-10-18T21:23:27","modified_gmt":"2014-10-18T21:23:27","slug":"jak-vytvorit-vlastni-sablonu-pro-wordpress-8-dil","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-vytvorit-vlastni-sablonu-pro-wordpress-8-dil\/","title":{"rendered":"Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress \u2013 8 d\u00edl"},"content":{"rendered":"\n<p>V d\u00edle sedm\u00e9m jsme se v\u011bnovali v\u00fdpisu koment\u00e1\u0159\u016f, kter\u00e9 se zobrazuj\u00ed na detailu \u010dl\u00e1nku a str\u00e1nky. V dne\u0161n\u00edm d\u00edle dopln\u00edme v\u00fdpis \u010dl\u00e1nk\u016f, a\u0165 ji\u017e se jedn\u00e1 o kategorii, nebo arch\u00edv, o r\u016fzn\u00e1 druhy post form\u00e1t\u016f.<\/p>\n\n\n\n<p>Post form\u00e1ty jsou r\u016fzn\u00e9 druhy \u010dl\u00e1nk\u016f, kter\u00e9 umo\u017e\u0148uj\u00ed zobrazovat r\u016fzn\u011b upraven\u00fd v\u00fdpis, dle toho, o jak\u00fd post form\u00e1t se jedn\u00e1. Nap\u0159\u00edklad post form\u00e1t video nepot\u0159ebuje m\u00edt textov\u00fd obsah, nebo citace, nepot\u0159ebuje titulek.<\/p>\n\n\n\n<p>Nejprve v\u0161ak mus\u00edme umo\u017enit \u0161ablon\u011b pou\u017eit\u00ed post form\u00e1t\u016f.<\/p>\n\n\n\n<p>Do functions.php vlo\u017e\u00edme n\u00e1sleduj\u00edc\u00ed funkci:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_theme_support( 'post-formats', array(\n    'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', 'status', 'chat'\n) );<\/code><\/pre>\n\n\n\n<p>D\u00edky tomu \u0159ekneme WordPressu, \u017ee \u0161ablona podporuje post form\u00e1ty. V tuto chv\u00edli si trochu uprav\u00edme functions.php. Vytvo\u0159\u00edme funkci blank_setup a tu zav\u011bs\u00edme do hooku after_setup_theme.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action( 'after_setup_theme', 'blank_setup' );<\/code><\/pre>\n\n\n\n<p>Tento hook vyu\u017eijeme, proto\u017ee se provede d\u0159\u00edve, ne\u017e init, kdy u\u017e pro n\u011bkter\u00e1 nastaven\u00ed m\u016f\u017ee b\u00fdt pozd\u011b.<br \/>Do t\u00e9to funkce p\u0159esuneme podporu post form\u00e1t\u016f, register menu a thumbnails.<\/p>\n\n\n\n<p>V\u00fdsledek bude vypadat takto:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if ( !function_exists('blank_setup') ) {\n\n  function blank_setup(){\n\n    register_nav_menu('primary-menu', __('Primary Menu','theme'));\n\n    add_theme_support( 'post-thumbnails' );\n    set_post_thumbnail_size( 56, 56, true ); \/\/ Normal post thumbnails\n    add_image_size( 'sidebar', 50, 50, true ); \/\/ Sidebar thumbnail\n    add_image_size( 'blog', 619, 300, true ); \/\/ Blog thumbnail\n\n\n    add_theme_support( 'post-formats', array(\n\t   'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',\n    ) );\n\n  }\n\n}\n\nadd_action( 'after_setup_theme', 'blank_setup' );<\/code><\/pre>\n\n\n\n<p>Zvykn\u011bte si pou\u017e\u00edvat function_exists, kdy\u017e d\u011bl\u00e1te \u0161ablonu, v p\u0159\u00edpad\u011b \u0161ablony tak umo\u017en\u00edte vytvo\u0159en\u00ed child theme.<br \/>V prav\u00e9m sloupci se v\u00e1m objev\u00ed nov\u00fd metabox.<br \/><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"301\" height=\"297\" src=\"http:\/\/musilda.cz\/wp-content\/uploads\/2014\/10\/post-formats.png\" alt=\"post formats\" class=\"wp-image-2087\" \/><\/figure>\n<\/div>\n\n\n<p>Post form\u00e1ty m\u016f\u017eete p\u0159ejmenov\u00e1vat a r\u016fzn\u011b upravovat, ale jejich po\u010det je nem\u011bnn\u00fd. Tak\u017ee nov\u00e9 nen\u00ed mo\u017en\u00e9 p\u0159idat.<\/p>\n\n\n\n<p>Nyn\u00ed za\u010dneme upravovat content.php<\/p>\n\n\n\n<p>Proto\u017ee se n\u00e1m bude \u0161patn\u011b pracovat s velk\u00fdm mno\u017estv\u00edm k\u00f3du, vezmeme meta, kter\u00e9 jsme vytvo\u0159ili a d\u00e1me je do zvl\u00e1\u0161tn\u00edho souboru post-meta.php, do nov\u011b vytvo\u0159en\u00e9 slo\u017eky inc.<br \/>Cel\u00fd k\u00f3d zkop\u00edrujeme do nov\u00e9ho souboru a na jeho m\u00edsto vlo\u017e\u00edme:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;<\/code><\/pre>\n\n\n\n<p>A nyn\u00ed za\u010dneme vytv\u00e1\u0159et varianty content pro r\u016fzn\u00e9 post form\u00e1ty.<\/p>\n\n\n\n<p><strong>Content-gallery.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n  &lt;?php if ( is_single() ) : ?&gt;\n    &lt;h1 class=\"title\"&gt;\n\t      &lt;?php the_title(); ?&gt;\n\t  &lt;\/h1&gt;\n  &lt;?php else: ?&gt;\n    &lt;h2 class=\"title\"&gt;\n\t    &lt;a href=\"&lt;?php the_permalink() ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n        &lt;?php the_title(); ?&gt;\n      &lt;\/a&gt;\n\t  &lt;\/h2&gt;\n  &lt;?php endif; ?&gt;\n      &lt;div class=\"post-content\"&gt;\n\t     &lt;?php if ( is_single() || ! get_post_gallery() ) : ?&gt;\n        &lt;?php echo the_content();?&gt;\n       &lt;?php else: ?&gt;\n\t       &lt;?php echo get_post_gallery(); ?&gt;\n          &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n          &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n            &lt;?php _e('Read more','theme'); ?&gt;\n          &lt;\/a&gt;\n        &lt;?php endif; ?&gt;\n     &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p><strong>Content-link.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n  &lt;?php if ( is_single() ) : ?&gt;\n    &lt;h1 class=\"title\"&gt;\n\t      &lt;?php the_title(); ?&gt;\n\t  &lt;\/h1&gt;\n  &lt;?php else: ?&gt;\n    &lt;h2 class=\"title\"&gt;\n\t    &lt;a href=\"&lt;?php the_permalink() ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n        &lt;?php the_title(); ?&gt;\n      &lt;\/a&gt;\n\t  &lt;\/h2&gt;\n  &lt;?php endif; ?&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n      &lt;div class=\"post-content\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p><strong>Content-image.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n  &lt;?php if ( is_single() ) : ?&gt;\n    &lt;h1 class=\"title\"&gt;\n\t      &lt;?php the_title(); ?&gt;\n\t  &lt;\/h1&gt;\n  &lt;?php else: ?&gt;\n    &lt;h2 class=\"title\"&gt;\n\t    &lt;a href=\"&lt;?php the_permalink() ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n        &lt;?php the_title(); ?&gt;\n      &lt;\/a&gt;\n\t  &lt;\/h2&gt;\n  &lt;?php endif; ?&gt;\n      &lt;div class=\"post-content\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n  &lt;?php if ( !is_single() ) : ?&gt;\n    &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n      &lt;?php _e('Read more','theme'); ?&gt;\n    &lt;\/a&gt;\n  &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p><strong>Content-audio.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n  &lt;?php if ( is_single() ) : ?&gt;\n    &lt;h1 class=\"title\"&gt;\n\t      &lt;?php the_title(); ?&gt;\n\t  &lt;\/h1&gt;\n  &lt;?php else: ?&gt;\n    &lt;h2 class=\"title\"&gt;\n\t    &lt;a href=\"&lt;?php the_permalink() ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n        &lt;?php the_title(); ?&gt;\n      &lt;\/a&gt;\n\t  &lt;\/h2&gt;\n  &lt;?php endif; ?&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n      &lt;div class=\"post-content\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n  &lt;?php if ( !is_single() ) : ?&gt;\n    &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n      &lt;?php _e('Read more','theme'); ?&gt;\n    &lt;\/a&gt;\n  &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p><strong>Content-video.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n  &lt;?php if ( is_single() ) : ?&gt;\n    &lt;h1 class=\"title\"&gt;\n\t      &lt;?php the_title(); ?&gt;\n\t  &lt;\/h1&gt;\n  &lt;?php else: ?&gt;\n    &lt;h2 class=\"title\"&gt;\n\t    &lt;a href=\"&lt;?php the_permalink() ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n        &lt;?php the_title(); ?&gt;\n      &lt;\/a&gt;\n\t  &lt;\/h2&gt;\n  &lt;?php endif; ?&gt;\n      &lt;div class=\"post-content\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n  &lt;?php if ( !is_single() ) : ?&gt;\n    &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n      &lt;?php _e('Read more','theme'); ?&gt;\n    &lt;\/a&gt;\n  &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p><strong>Content-aside.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n      &lt;div class=\"post-content content-aside\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n  &lt;?php if ( !is_single() ) : ?&gt;\n    &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n      &lt;?php _e('Read more','theme'); ?&gt;\n    &lt;\/a&gt;\n  &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p>Pro tento form\u00e1t lehce uprav\u00edme styly<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.content-aside{\n  margin-top:30px;\n  width:100%;\n  -moz-box-sizing: border-box;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n  padding:20px 20px 20px 40px;\n}<\/code><\/pre>\n\n\n\n<p><strong>Content-quote.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n      &lt;div class=\"post-content content-quote\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n  &lt;?php if ( !is_single() ) : ?&gt;\n    &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n      &lt;?php _e('Read more','theme'); ?&gt;\n    &lt;\/a&gt;\n  &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p>Tak\u00e9 lehce uprav\u00edme styly<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.content-quote{\n  margin-top:30px;\n  width:100%;\n  -moz-box-sizing: border-box;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n  padding:20px 20px 20px 40px;\n  background-color:#dddddd;\n  border-left:solid 5px #d43f3a;\n}<\/code><\/pre>\n\n\n\n<p><strong>Content-status.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n      &lt;div class=\"post-content content-status\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n  &lt;?php if ( !is_single() ) : ?&gt;\n    &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n      &lt;?php _e('Read more','theme'); ?&gt;\n    &lt;\/a&gt;\n  &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p>Styl statusu je podobn\u00fd aside, tak\u017ee do css jen p\u0159id\u00e1me \u0159\u00e1dek:<\/p>\n\n\n\n<p>.content-aside,<br \/>.content-status<\/p>\n\n\n\n<p>t\u00edm maj\u00ed aside i status stejn\u00fd styl.<\/p>\n\n\n\n<p><strong>Content-chat.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n  &lt;?php if ( is_single() ) : ?&gt;\n    &lt;h1 class=\"title\"&gt;\n\t      &lt;?php the_title(); ?&gt;\n\t  &lt;\/h1&gt;\n  &lt;?php else: ?&gt;\n    &lt;h2 class=\"title\"&gt;\n\t    &lt;a href=\"&lt;?php the_permalink() ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n        &lt;?php the_title(); ?&gt;\n      &lt;\/a&gt;\n\t  &lt;\/h2&gt;\n  &lt;?php endif; ?&gt;\n      &lt;div class=\"post-content\"&gt;\n\t     &lt;?php echo the_content();?&gt;\n     &lt;\/div&gt;\n  &lt;?php get_template_part( 'inc\/post-meta' ); ?&gt;\n  &lt;?php if ( !is_single() ) : ?&gt;\n    &lt;a class=\"btn btn-danger\" href=\"&lt;?php the_permalink(); ?&gt;\"&gt;\n      &lt;?php _e('Read more','theme'); ?&gt;\n    &lt;\/a&gt;\n  &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p><strong>Content-none.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div &lt;?php post_class() ?&gt; id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n  &lt;?php if ( is_single() ) : ?&gt;\n    &lt;h1 class=\"title\"&gt;\n\t    &lt;?php _e( 'Nothing Found', 'theme' ); ?&gt;\n\t  &lt;\/h1&gt;\n  &lt;?php else: ?&gt;\n    &lt;h2 class=\"title\"&gt;\n\t    &lt;?php _e( 'Nothing Found', 'theme' ); ?&gt;\n\t  &lt;\/h2&gt;\n  &lt;?php endif; ?&gt;\n      &lt;div class=\"post-content\"&gt;\n\t     &lt;?php if ( is_home() &amp;&amp; current_user_can( 'publish_posts' ) ) : ?&gt;\n\t       &lt;p&gt;&lt;?php printf( __( 'Ready to publish your first post? &lt;a href=\"%1$s\"&gt;Get started here&lt;\/a&gt;.', 'theme' ), admin_url( 'post-new.php' ) ); ?&gt;&lt;\/p&gt;\n\t     &lt;?php elseif ( is_search() ) : ?&gt;\n\t       &lt;p&gt;&lt;?php _e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'theme' ); ?&gt;&lt;\/p&gt;\n\t     &lt;?php get_search_form(); ?&gt;\n\t     &lt;?php else : ?&gt;\n\t       &lt;p&gt;&lt;?php _e( 'It seems we can&amp;rsquo;t find what you&amp;rsquo;re looking for. Perhaps searching can help.', 'theme' ); ?&gt;&lt;\/p&gt;\n\t     &lt;?php get_search_form(); ?&gt;\n\t     &lt;?php endif; ?&gt;\n     &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p>A to by pro dne\u0161ek mohlo sta\u010dit. Sice to na prvn\u00ed pohled vypad\u00e1 jako mnoho, st\u00e1le se opakuj\u00edc\u00edho k\u00f3du, jen s mal\u00fdmi zm\u011bnami, ale v\u0161imn\u011bte si, jak se zm\u011bnil v\u00fdpis post form\u00e1tu audio<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"283\" src=\"http:\/\/musilda.cz\/wp-content\/uploads\/2014\/10\/screenshot-by-nimbus.png\" alt=\"screenshot-by-nimbus\" class=\"wp-image-2090\" srcset=\"https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/10\/screenshot-by-nimbus.png 756w, https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/10\/screenshot-by-nimbus-300x112.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/figure>\n<\/div>\n\n\n<p>Nav\u00edc, d\u00edky speci\u00e1ln\u00edmu souboru pro ka\u017ed\u00fd post form\u00e1t, m\u016f\u017eete jejich vzhled v\u00edce odli\u0161it. Nap\u0159\u00edklad u magaz\u00edn\u016f jsem vid\u011bl zobrazen\u00ed ikonek, kter\u00e9 ozna\u010dovaly ur\u010dit\u00e9 post form\u00e1ty.<br \/>Proto\u017ee v\u00e1s nechci nutit ps\u00e1t cel\u00fd k\u00f3d, \u0161ablonu v aktu\u00e1ln\u00edm stavu si m\u016f\u017eete st\u00e1hnout:<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-06602c08-8e81-4bbf-8c95-c025e2d6d1ff\" href=\"https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/10\/blank.zip\">Dummy theme<\/a><a href=\"https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/10\/blank.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-06602c08-8e81-4bbf-8c95-c025e2d6d1ff\">St\u00e1hnout<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Seri\u00e1l: Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-1-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 1.d\u00edl<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-2-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 2.d\u00edl<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-3-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 3.d\u00edl<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-4-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 4.d\u00edl<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-5-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 5.d\u00edl<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-6-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 6.d\u00edl<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-7-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 7.d\u00edl<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/musilda.cz\/jak-vytvorit-vlastni-sablonu-pro-wordpress-8-dil\/\" target=\"_blank\" rel=\"noopener\">Jak vytvo\u0159it vlastn\u00ed \u0161ablonu pro WordPress 8.d\u00edl<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>V d\u00edle sedm\u00e9m jsme se v\u011bnovali v\u00fdpisu koment\u00e1\u0159\u016f, kter\u00e9 se zobrazuj\u00ed na detailu \u010dl\u00e1nku a str\u00e1nky. V dne\u0161n\u00edm d\u00edle dopln\u00edme v\u00fdpis \u010dl\u00e1nk\u016f, a\u0165 ji\u017e se jedn\u00e1 o kategorii, nebo arch\u00edv, o r\u016fzn\u00e1 druhy post form\u00e1t\u016f. Post form\u00e1ty jsou r\u016fzn\u00e9 druhy \u010dl\u00e1nk\u016f, kter\u00e9 umo\u017e\u0148uj\u00ed zobrazovat r\u016fzn\u011b upraven\u00fd v\u00fdpis, dle toho, o jak\u00fd post form\u00e1t se jedn\u00e1.<\/p>\n","protected":false},"author":1,"featured_media":8395,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-2085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jak-vytvorit-vlastni-sablonu-pro-wordpress"],"acf":[],"uagb_featured_image_src":{"full":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil.jpg",1200,800,false],"thumbnail":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil-150x150.jpg",150,150,true],"medium":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil-300x200.jpg",300,200,true],"medium_large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil-768x512.jpg",640,427,true],"large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil-1024x683.jpg",640,427,true],"1536x1536":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil.jpg",1200,800,false],"2048x2048":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil.jpg",1200,800,false],"archive-list":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2013\/05\/vlastni-sablona-pro-wordpress-8-dil-400x265.jpg",400,265,true]},"uagb_author_info":{"display_name":"Affinite","author_link":"https:\/\/affinite.io\/cs\/author\/affinite\/"},"uagb_comment_info":13,"uagb_excerpt":"V d\u00edle sedm\u00e9m jsme se v\u011bnovali v\u00fdpisu koment\u00e1\u0159\u016f, kter\u00e9 se zobrazuj\u00ed na detailu \u010dl\u00e1nku a str\u00e1nky. V dne\u0161n\u00edm d\u00edle dopln\u00edme v\u00fdpis \u010dl\u00e1nk\u016f, a\u0165 ji\u017e se jedn\u00e1 o kategorii, nebo arch\u00edv, o r\u016fzn\u00e1 druhy post form\u00e1t\u016f. Post form\u00e1ty jsou r\u016fzn\u00e9 druhy \u010dl\u00e1nk\u016f, kter\u00e9 umo\u017e\u0148uj\u00ed zobrazovat r\u016fzn\u011b upraven\u00fd v\u00fdpis, dle toho, o jak\u00fd post form\u00e1t se jedn\u00e1.","_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/2085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=2085"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/2085\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8395"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=2085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=2085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=2085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}