{"id":832,"date":"2013-07-15T18:52:06","date_gmt":"2013-07-15T18:52:06","guid":{"rendered":"http:\/\/musilda.cz\/?p=832"},"modified":"2013-07-15T18:52:06","modified_gmt":"2013-07-15T18:52:06","slug":"funkce-wp_title","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-wp_title\/","title":{"rendered":"Funkce wp_title"},"content":{"rendered":"

Funkce wp_title() vrac\u00ed, nebo zobraz\u00ed titulek str\u00e1nky. Ve funkci lze definovat odd\u011blova\u010d a pomoc\u00ed t\u0159et\u00edho nepovinn\u00e9ho parametru lze ur\u010dit, zda se bude odd\u011blova\u010d zobrazovat\u00a0na prav\u00e9, \u010di lev\u00e9 stran\u011b titulku. Hodnota titulku z\u00e1vis\u00ed na druhu str\u00e1nky, u \u010dl\u00e1nku, to bude titulek \u010dl\u00e1nku, na str\u00e1nce to je titulek str\u00e1nky, na str\u00e1nce autora – jm\u00e9no autora a na v\u00fdpisu kategorie, to bude n\u00e1zev kategorie.<\/p>\n

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

 wp_title( $sep, $display, $seplocation );<\/pre>\n

Parametry:<\/p>\n

$sep<\/strong> – definuje odd\u011blova\u010d, defaultn\u011b – »
\n$display<\/strong> – ur\u010duje, zda se titulek vyp\u00ed\u0161e, nebo bude vr\u00e1cen jako php prom\u011bnn\u00e1 – defaultn\u011b true – titulek se rovnou zobraz\u00ed
\n$seplocation<\/strong> – pou\u017eit\u00ed hodnoty right, nebo left ur\u010d\u00ed, kde se odd\u011blova\u010d zobraz\u00ed, defaultn\u011b je false a zobrazuje se vlevo od titulku<\/p>\n

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

 <\/title><\/pre>\n<pre lang=\"php\"><title><\/title><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Funkce wp_title() vrac\u00ed, nebo zobraz\u00ed titulek str\u00e1nky. Ve funkci lze definovat odd\u011blova\u010d a pomoc\u00ed t\u0159et\u00edho nepovinn\u00e9ho parametru lze ur\u010dit, zda se bude odd\u011blova\u010d zobrazovat\u00a0na prav\u00e9, \u010di lev\u00e9 stran\u011b titulku. Hodnota titulku z\u00e1vis\u00ed na druhu str\u00e1nky, u \u010dl\u00e1nku, to bude titulek \u010dl\u00e1nku, na str\u00e1nce to je titulek str\u00e1nky, na str\u00e1nce autora – jm\u00e9no autora a na<\/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":[162],"class_list":["post-832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-funkce-wp_title"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/832"}],"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=832"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/832\/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=832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}