{"id":3968,"date":"2023-07-12T22:51:43","date_gmt":"2023-07-12T20:51:43","guid":{"rendered":"https:\/\/www.knowboard.de\/?p=3968"},"modified":"2023-07-23T14:22:44","modified_gmt":"2023-07-23T12:22:44","slug":"simple-excerpt-shortcode","status":"publish","type":"post","link":"https:\/\/www.knowboard.de\/simple-excerpt-shortcode\/","title":{"rendered":"Simple excerpt shortcode"},"content":{"rendered":"\n
Ich verwende andauernd eigene Shortcodes und muss immer wieder nach simplen Vorlagen suchen. Hier ist ein ganz einfaches Beispiel daf\u00fcr, wie man den Excerpt, also den kurzen Einleitungstext eines Beitrags, ohne gro\u00dfen Aufwand im Loop oder in einer Detailansicht ausgeben kann.<\/p>\n\n\n\n
function create_shortcode_excerpt() { \n\techo the_excerpt(); \n}\nadd_shortcode ( 'show_excerpt' , 'create_shortcode_excerpt' );<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"Ich verwende andauernd eigene Shortcodes und muss immer wieder nach simplen Vorlagen suchen. Hier ist ein ganz einfaches Beispiel daf\u00fcr, wie man den Excerpt, also den kurzen Einleitungstext eines Beitrags, ohne gro\u00dfen Aufwand im Loop oder in einer Detailansicht ausgeben kann.<\/p>\n","protected":false},"author":1,"featured_media":4019,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-3968","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","entry","has-media"],"_links":{"self":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3968"}],"collection":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/comments?post=3968"}],"version-history":[{"count":2,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3968\/revisions"}],"predecessor-version":[{"id":4003,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3968\/revisions\/4003"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/media\/4019"}],"wp:attachment":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/media?parent=3968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/categories?post=3968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/tags?post=3968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}