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

Funkce is_sticky() pat\u0159\u00ed mezi takzvan\u00e9 podmi\u0148ovac\u00ed tagy, stejn\u011b jako is_page a dal\u0161\u00ed. Funkce kontroluje, zda je aktu\u00e1ln\u00ed post ozna\u010den jako sticky. Sticky post je \u010dl\u00e1nek, kter\u00fd se um\u00eds\u0165uje neust\u00e1le prvn\u00ed na home page.<\/p>\n

Funkce vrac\u00ed true, nebo false.<\/p>\n

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

\nis_sticky($post_ID);\n<\/pre>\n

Pomoc\u00ed t\u00e9to funkce m\u016f\u017eete vzhled prvn\u00edho postu odli\u0161it od ostatn\u00edch a nap\u0159\u00edklad jej zv\u00fdraznit.<\/p>\n","protected":false},"excerpt":{"rendered":"

Funkce is_sticky() pat\u0159\u00ed mezi takzvan\u00e9 podmi\u0148ovac\u00ed tagy, stejn\u011b jako is_page a dal\u0161\u00ed. Funkce kontroluje, zda je aktu\u00e1ln\u00ed post ozna\u010den jako sticky. Sticky post je \u010dl\u00e1nek, kter\u00fd se um\u00eds\u0165uje neust\u00e1le prvn\u00ed na home page. Funkce vrac\u00ed true, nebo false. Pou\u017eit\u00ed: is_sticky($post_ID); Pomoc\u00ed t\u00e9to funkce m\u016f\u017eete vzhled prvn\u00edho postu odli\u0161it od ostatn\u00edch a nap\u0159\u00edklad jej zv\u00fdraznit.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[7,15],"tags":[208],"class_list":["post-1377","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-post-funkce","tag-is_sticky"],"uagb_featured_image_src":{"full":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu.png",1200,800,false],"thumbnail":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-150x150.png",150,150,true],"medium":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-300x200.png",300,200,true],"medium_large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-768x512.png",640,427,true],"large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-1024x683.png",640,427,true],"1536x1536":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu.png",1200,800,false],"2048x2048":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu.png",1200,800,false],"archive-list":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-400x265.png",400,265,true]},"uagb_author_info":{"display_name":"Affinite","author_link":"https:\/\/affinite.io\/cs\/author\/affinite\/"},"uagb_comment_info":0,"uagb_excerpt":"Funkce is_sticky() pat\u0159\u00ed mezi takzvan\u00e9 podmi\u0148ovac\u00ed tagy, stejn\u011b jako is_page a dal\u0161\u00ed. Funkce kontroluje, zda je aktu\u00e1ln\u00ed post ozna\u010den jako sticky. Sticky post je \u010dl\u00e1nek, kter\u00fd se um\u00eds\u0165uje neust\u00e1le prvn\u00ed na home page. Funkce vrac\u00ed true, nebo false. Pou\u017eit\u00ed: is_sticky($post_ID); Pomoc\u00ed t\u00e9to funkce m\u016f\u017eete vzhled prvn\u00edho postu odli\u0161it od ostatn\u00edch a nap\u0159\u00edklad jej zv\u00fdraznit.","_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1377"}],"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=1377"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1377\/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=1377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}