{"id":1147,"date":"2013-09-22T20:03:34","date_gmt":"2013-09-22T20:03:34","guid":{"rendered":"http:\/\/musilda.cz\/?p=1147"},"modified":"2013-09-22T20:03:34","modified_gmt":"2013-09-22T20:03:34","slug":"funkce-the_id","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-the_id\/","title":{"rendered":"Funkce the_ID"},"content":{"rendered":"
Tato funkce zobraz\u00ed id aktu\u00e1ln\u00edho \u010dl\u00e1nku a lze ji pou\u017e\u00edt pouze uvnit\u0159 loopu. Funkce nem\u00e1 \u017e\u00e1dn\u00e9 parametry a pouze zobrazuje id postu. Pokud budete cht\u00edt z\u00edskat id postu jako prom\u011bnnou, mus\u00edte pou\u017e\u00edt funkci get_the_ID(). Jedn\u00edm z mo\u017en\u00fdch pou\u017eit\u00ed, je vytvo\u0159en\u00ed unik\u00e1tn\u00ed t\u0159\u00eddu, nebo id postu.<\/p>\n
Pou\u017eit\u00ed:<\/p>\n
\n<div class="post-><\/div>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Tato funkce zobraz\u00ed id aktu\u00e1ln\u00edho \u010dl\u00e1nku a lze ji pou\u017e\u00edt pouze uvnit\u0159 loopu. Funkce nem\u00e1 \u017e\u00e1dn\u00e9 parametry a pouze zobrazuje id postu. Pokud budete cht\u00edt z\u00edskat id postu jako prom\u011bnnou, mus\u00edte pou\u017e\u00edt funkci get_the_ID(). Jedn\u00edm z mo\u017en\u00fdch pou\u017eit\u00ed, je vytvo\u0159en\u00ed unik\u00e1tn\u00ed t\u0159\u00eddu, nebo id postu.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,15],"tags":[160],"class_list":["post-1147","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-post-funkce","tag-funkce-the_id"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1147"}],"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=1147"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1147\/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=1147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}