{"id":1520,"date":"2014-02-07T21:24:09","date_gmt":"2014-02-07T21:24:09","guid":{"rendered":"http:\/\/musilda.cz\/?p=1520"},"modified":"2014-02-07T21:24:09","modified_gmt":"2014-02-07T21:24:09","slug":"funkce-get_post_format","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-get_post_format\/","title":{"rendered":"Funkce get_post_format"},"content":{"rendered":"

Funkce get_post_format() slou\u017e\u00ed k z\u00edsk\u00e1ni post form\u00e1tu aktu\u00e1ln\u00edho postu. Obvykle se pou\u017e\u00edv\u00e1 uvnit\u0159 loopu, ale pokud je definov\u00e1no post id, m\u016f\u017ee se pou\u017e\u00edt kdekoliv.\u00a0<\/p>\n

Pou\u017eit\u00ed<\/h2>\n
$format = get_post_format( $post_id );<\/pre>\n

Funkce p\u0159ij\u00edm\u00e1 id postu, pokud je uvnit\u0159 loopu, m\u016f\u017eete ji volat get_post_format().<\/p>\n

Vrac\u00ed form\u00e1t jako \u0159et\u011bzec, kter\u00fd m\u016f\u017ee nab\u00fdvat n\u00e1sleduj\u00edc\u00edch hodnot:<\/p>\n