{"id":1246,"date":"2013-10-27T06:47:13","date_gmt":"2013-10-27T06:47:13","guid":{"rendered":"http:\/\/musilda.cz\/?p=1246"},"modified":"2013-10-27T06:47:13","modified_gmt":"2013-10-27T06:47:13","slug":"funkce-get-boundary-post","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-get-boundary-post\/","title":{"rendered":"Funkce get_boundary_post"},"content":{"rendered":"
Funkce get_boundary_post() zobrazuje prvn\u00ed, nebo posledn\u00ed \u010dl\u00e1nek dle data. Lze ur\u010dit, zda p\u016fjde o \u010dl\u00e1nek ve stejn\u00e9 kategorii, nebo definovat kategorie, kter\u00e9 se do v\u00fdpisu nezahrnou. Po pou\u017eit\u00ed funkce se po\u010d\u00edtadlo \u010dl\u00e1nk\u016f nastav\u00ed na za\u010d\u00e1tek.\u00a0<\/p>\n
Pou\u017eit\u00ed:<\/p>\n
get_boundary_post( $in_same_cat, $excluded_categories, $start );<\/pre>\nParametry:<\/p>\n
$in_same_cat – vyp\u00ed\u0161e \u010dl\u00e1nek ve stejn\u00e9 kategorii, defaultn\u011b false<\/p>\n
$excluded_categories – vynechan\u00e9 kategorie, defaultn\u011b pr\u00e1zdn\u00fd \u0159et\u011bzec, pokud chcete pou\u017e\u00edt t\u0159et\u00ed parametr funkce, mus\u00edte do funkce zapsat uvozovky bez hodnoty<\/p>\n
$start – ur\u010duje. zda jde o prvn\u00ed, nebo posledn\u00ed \u010dl\u00e1nek, defaultn\u011b true<\/p>\n","protected":false},"excerpt":{"rendered":"
Funkce get_boundary_post() zobrazuje prvn\u00ed, nebo posledn\u00ed \u010dl\u00e1nek dle data. Lze ur\u010dit, zda p\u016fjde o \u010dl\u00e1nek ve stejn\u00e9 kategorii, nebo definovat kategorie, kter\u00e9 se do v\u00fdpisu nezahrnou. Po pou\u017eit\u00ed funkce se po\u010d\u00edtadlo \u010dl\u00e1nk\u016f nastav\u00ed na za\u010d\u00e1tek.\u00a0<\/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":[],"class_list":["post-1246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-post-funkce"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1246"}],"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=1246"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1246\/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=1246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}