{"id":2282,"date":"2014-12-23T19:40:29","date_gmt":"2014-12-23T19:40:29","guid":{"rendered":"http:\/\/musilda.cz\/?p=2282"},"modified":"2014-12-23T19:40:29","modified_gmt":"2014-12-23T19:40:29","slug":"nove-funkce-pro-vypis-archivu-ve-wordpress4-1","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/nove-funkce-pro-vypis-archivu-ve-wordpress4-1\/","title":{"rendered":"Nov\u00e9 funkce pro v\u00fdpis arch\u00edvu ve WordPress4.1"},"content":{"rendered":"\n

Nov\u00fd WordPress je ji\u017e n\u011bkolik dn\u00ed k dispozici a proto je nejvy\u0161\u0161\u00ed \u010das, pod\u00edvat se na n\u011bkter\u00e9 novinky ve funkc\u00edch. Dv\u011b velmi „\u0161ikovn\u00e9“ se t\u00fdkaj\u00ed \u0161ablony pro v\u00fdpis arch\u00edvu.<\/p>\n\n\n\n\n\n\n\n

Pokud jste ji\u017e n\u011bjakou \u0161ablonu vytvo\u0159ili, nebo upravovali, \u010dasto jste se v souboru archive.php setkali s neforemnou konstrukc\u00ed if archive, is_day atd…<\/p>\n\n\n\n

\u010cty\u0159i nov\u00e9 funkce toto odstra\u0148uj\u00ed, respektive p\u0159esouvaj\u00ed do souboru general-templates.php ve slo\u017ece wp-includes. Funkce to jsou sice \u010dty\u0159i, ale jedn\u00e1 se o dv\u011b, u ka\u017ed\u00e9 s variantou echo a get.<\/p>\n\n\n\n

Jedn\u00e1 se o:<\/p>\n\n\n\n