{"id":1026,"date":"2013-08-20T20:16:06","date_gmt":"2013-08-20T20:16:06","guid":{"rendered":"http:\/\/musilda.cz\/?p=1026"},"modified":"2013-08-20T20:16:06","modified_gmt":"2013-08-20T20:16:06","slug":"nefunkcni-more-tag-ve-vypisu-clanku","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/nefunkcni-more-tag-ve-vypisu-clanku\/","title":{"rendered":"Nefunk\u010dn\u00ed more tag ve v\u00fdpisu \u010dl\u00e1nk\u016f"},"content":{"rendered":"\n
More tag je zp\u016fsob, jak rozd\u011blit obsah na \u010d\u00e1st, kter\u00e1 se bude zobrazovat na v\u00fdpisu \u010dl\u00e1nk\u016f a na \u010d\u00e1st, kter\u00e1 se zobraz\u00ed a\u017e na detailu. \u010casto se st\u00e1v\u00e1, p\u0159edev\u0161\u00edm u vytv\u00e1\u0159en\u00ed custom v\u00fdpis\u016f \u010dl\u00e1nk\u016f dle specifick\u00fdch po\u017eadavk\u016f, nebo p\u0159i vypisov\u00e1n\u00ed custom post type obsahu, \u017ee v\u00e1m nebude tag more fungovat. A\u0165 ji\u017e vlo\u017e\u00edte zna\u010dku <!–more–> kamkoliv, obsah se st\u00e1le vypisuje cel\u00fd.<\/p>\n\n\n\n
\u0158e\u0161en\u00ed je jednoduch\u00e9.<\/p>\n\n\n\n
Nejprve v \u0161ablon\u011b p\u0159id\u00e1te \u0159\u00e1dek:<\/p>\n\n\n\n
global $more;<\/pre>\n\n\n\nten mus\u00ed b\u00fdt um\u00edst\u011bn mimo loop v\u00fdpisu a do smy\u010dky, kter\u00e1 vypisuje \u010dl\u00e1nky p\u0159id\u00e1me:<\/p>\n\n\n\n
$more = 0;<\/pre>\n\n\n\nNyn\u00ed u\u017e by m\u011blo rozd\u011blen\u00ed bez probl\u00e9m\u016f fungovat.<\/p>\n","protected":false},"excerpt":{"rendered":"
More tag je zp\u016fsob, jak rozd\u011blit obsah na \u010d\u00e1st, kter\u00e1 se bude zobrazovat na v\u00fdpisu \u010dl\u00e1nk\u016f a na \u010d\u00e1st, kter\u00e1 se zobraz\u00ed a\u017e na detailu. \u010casto se st\u00e1v\u00e1, p\u0159edev\u0161\u00edm u vytv\u00e1\u0159en\u00ed custom v\u00fdpis\u016f \u010dl\u00e1nk\u016f dle specifick\u00fdch po\u017eadavk\u016f, nebo p\u0159i vypisov\u00e1n\u00ed custom post type obsahu, \u017ee v\u00e1m nebude tag more fungovat. A\u0165 ji\u017e vlo\u017e\u00edte zna\u010dku <!–more–> kamkoliv,<\/p>\n","protected":false},"author":1,"featured_media":8624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[19],"tags":[259],"class_list":["post-1026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippety","tag-nefunguje-more"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1026"}],"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=1026"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1026\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8624"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}