{"id":1053,"date":"2013-08-23T20:13:55","date_gmt":"2013-08-23T20:13:55","guid":{"rendered":"http:\/\/musilda.cz\/?p=1053"},"modified":"2013-08-23T20:13:55","modified_gmt":"2013-08-23T20:13:55","slug":"funkce-wp_get_archives","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-wp_get_archives\/","title":{"rendered":"Funkce wp_get_archives"},"content":{"rendered":"
Funkce wp_get_archives zobraz\u00ed seznam arch\u00edv\u016f \u010dl\u00e1nk\u016f dle ur\u010den\u00fdch parametr\u016f. Lze ji pou\u017e\u00edt kdekoliv v \u0161ablon\u011b, bez z\u00e1vislosti na loopu. V z\u00e1kladn\u00edm nastaven\u00ed vrac\u00ed seznam po m\u011bs\u00edc\u00edch, s odkazy v net\u0159\u00edd\u011bn\u00e9m seznamu.<\/p>\n
Pou\u017eit\u00ed:<\/p>\n
\n wp_get_archives( $args );\n<\/pre>\nDefaultn\u00ed hodnoty:<\/p>\n
\n$args = array(\n\t'type' => 'monthly',\n\t'limit' => '',\n\t'format' => 'html',\n\t'before' => '',\n\t'after' => '',\n\t'show_post_count' => false,\n\t'echo' => 1,\n\t'order' => 'DESC'\n);\n<\/pre>\nTyto parametry jsou nastaveny, pokud pou\u017eijete funkci takto: wp_get_archives();<\/p>\n
Parametry<\/h2>\nType<\/h3>\n
Ur\u010duje typ arch\u00edvu, kter\u00fd se zobraz\u00ed, m\u016f\u017ee m\u00edt tyto hodnoty:<\/p>\n
Ur\u010duje po\u010det zobrazen\u00fdch arch\u00edv\u016f<\/p>\n
Ur\u010duje druh v\u00fdpisu arch\u00edv\u016f, mo\u017en\u00e9 hodnoty:<\/p>\n
Ur\u010duje obsah, kter\u00fd se zobraz\u00ed p\u0159ed polo\u017ekou. Lze pou\u017e\u00edt jen p\u0159i format html a custom.<\/p>\n
Ur\u010duje obsah, kter\u00fd se zobraz\u00ed za polo\u017ekou. Lze pou\u017e\u00edt jen p\u0159i format html a custom.<\/p>\n
Ur\u010duje, zda se u hodnoty zobraz\u00ed po\u010det p\u0159\u00edsp\u011bvk\u016f v arch\u00edvu, mo\u017en\u00e9 hodnoty jsou:<\/p>\n
Ur\u010duje, zda se seznam vyp\u00ed\u0161e, nebo bude vr\u00e1cen jako prom\u011bnn\u00e1, mo\u017en\u00e9 hodnoty:<\/p>\n
Ur\u010duje, jak budou hodnoty se\u0159azeny.<\/p>\n
Funkce wp_get_archives zobraz\u00ed seznam arch\u00edv\u016f \u010dl\u00e1nk\u016f dle ur\u010den\u00fdch parametr\u016f. Lze ji pou\u017e\u00edt kdekoliv v \u0161ablon\u011b, bez z\u00e1vislosti na loopu. V z\u00e1kladn\u00edm nastaven\u00ed vrac\u00ed seznam po m\u011bs\u00edc\u00edch, s odkazy v net\u0159\u00edd\u011bn\u00e9m seznamu.<\/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":[],"class_list":["post-1053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1053"}],"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=1053"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1053\/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=1053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}