{"id":879,"date":"2013-07-23T05:21:56","date_gmt":"2013-07-23T05:21:56","guid":{"rendered":"http:\/\/musilda.cz\/?p=879"},"modified":"2013-07-23T05:21:56","modified_gmt":"2013-07-23T05:21:56","slug":"funkce-post_type_archive_title","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-post_type_archive_title\/","title":{"rendered":"Funkce post_type_archive_title"},"content":{"rendered":"

Funkce post_type_archive_title() zobrazuje titulek post type arch\u00edvu. Je p\u0159ipravena pro pou\u017eit\u00ed v archive.php, nebo archive-{post-type}.php. Pokud m\u00e1te vytvo\u0159en nap\u0159\u00edklad post type autokempy, tak v souboru archive-autokempy.php bude funkce zobrazovat titulek – Arch\u00edv pro autokempy.<\/p>\n

Pou\u017eit\u00ed:<\/p>\n

post_type_archive_title( $prefix, $display );<\/pre>\n

Parametry:<\/p>\n

$prefix – ur\u010duje co se bude zobrazovat p\u0159ed titulkem. Nefunguje, pokud je $display zad\u00e1no jako false.
\n$display – ur\u010duje, zda se titulek rovnou zobraz\u00ed – true, nebo bude vr\u00e1cen jako prom\u011bnn\u00e1 – false. Defaultn\u011b true.<\/p>\n

P\u0159\u00edklad:<\/p>\n

<\/h1><\/pre>\n","protected":false},"excerpt":{"rendered":"

Funkce post_type_archive_title() zobrazuje titulek post type arch\u00edvu. Je p\u0159ipravena pro pou\u017eit\u00ed v archive.php, nebo archive-{post-type}.php. Pokud m\u00e1te vytvo\u0159en nap\u0159\u00edklad post type autokempy, tak v souboru archive-autokempy.php bude funkce zobrazovat titulek – Arch\u00edv pro autokempy.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,22],"tags":[296],"class_list":["post-879","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-post_type_archive_title"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/879"}],"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=879"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/879\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8523"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}