{"id":967,"date":"2013-08-07T19:35:12","date_gmt":"2013-08-07T19:35:12","guid":{"rendered":"http:\/\/musilda.cz\/?p=967"},"modified":"2013-08-07T19:35:12","modified_gmt":"2013-08-07T19:35:12","slug":"funkce-single_tag_title","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-single_tag_title\/","title":{"rendered":"Funkce single_tag_title"},"content":{"rendered":"

Funkce single_tag_title() je dal\u0161\u00ed z template funkc\u00ed, kter\u00e1 vypisuje titulek str\u00e1nky. V tomto p\u0159\u00edpad\u011b jde o titulek aktu\u00e1ln\u00ed str\u00e1nku v\u00fdpisu arch\u00edvu konkr\u00e9tn\u00edho tagu. Pokud tedy vypisujete arch\u00edv tagu Reality, funkce zobraz\u00ed titulek str\u00e1nky.<\/p>\n

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

\n\n<\/pre>\n

Funkce m\u00e1 dva parametry $prefix a $display.<\/p>\n

$prefix ur\u010duje text, kter\u00fd se bude zobrazovat p\u0159ed titulkem. Pokud je parametr $display FALSE, $prefix bude ignorov\u00e1n.<\/p>\n

$display ur\u010duje, zda bude titulek rovnou vyps\u00e1n – TRUE, nebo vr\u00e1cen jako \u0159et\u011bzec – FALSE. Defaultn\u00ed je TRUE.<\/p>\n

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

single_tag_title('Currently browsing ');<\/pre>\n
$current_tag = single_tag_title(\"\", false);<\/pre>\n","protected":false},"excerpt":{"rendered":"

Funkce single_tag_title() je dal\u0161\u00ed z template funkc\u00ed, kter\u00e1 vypisuje titulek str\u00e1nky. V tomto p\u0159\u00edpad\u011b jde o titulek aktu\u00e1ln\u00ed str\u00e1nku v\u00fdpisu arch\u00edvu konkr\u00e9tn\u00edho tagu. Pokud tedy vypisujete arch\u00edv tagu Reality, funkce zobraz\u00ed titulek str\u00e1nky.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[7,22],"tags":[159],"class_list":["post-967","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-funkce-single_tag_title"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/967"}],"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=967"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/967\/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=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}