{"id":2729,"date":"2023-10-30T09:58:33","date_gmt":"2023-10-30T09:58:33","guid":{"rendered":"https:\/\/helpcenter.greyd.io\/custom-excerpt-settings-de\/"},"modified":"2025-01-30T18:18:10","modified_gmt":"2025-01-30T17:18:10","slug":"custom-excerpt-settings-de","status":"publish","type":"post","link":"https:\/\/helpcenter.greyd.io\/de\/custom-excerpt-settings-de\/","title":{"rendered":"How can I customize excerpt settings?"},"content":{"rendered":"
You can adjust excerpt lengths and the ellipsis easily by adding the following code to the functions.php of your child theme and adapt it as you need:<\/p>\n
<\/p>\n
function my_custom_excerpt_length( $length ) {return 20;<\/strong><\/p>\n }<\/strong><\/p>\n add_filter( 'excerpt_length', 'my_custom_excerpt_length', 999 );<\/strong><\/p>\n function my_custom_excerpt_more($more) {return '…read more';<\/strong><\/p>\n }<\/strong><\/p>\n add_filter('excerpt_more',\u00a0'my_custom_excerpt_more');<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":" You can adjust excerpt lengths and the ellipsis easily by adding the following code to the functions.php of your child theme and adapt it as you need: function my_custom_excerpt_length( $length ) {return 20; } add_filter( 'excerpt_length', 'my_custom_excerpt_length', 999 ); function my_custom_excerpt_more($more) {return '…read more'; } add_filter('excerpt_more',\u00a0'my_custom_excerpt_more');<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"greyd_block_editor_preview":[],"footnotes":""},"categories":[188],"tags":[698,1001,998],"topics":[695,890],"class_list":["post-2729","post","type-post","status-publish","format-standard","hentry","category-general","tag-child-theme-de","tag-ellipsis-de","tag-excerpt-de","topics-general-questions-de","topics-website-management-de"],"lang":"de","translations":{"de":2729,"en":645},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/posts\/2729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/comments?post=2729"}],"version-history":[{"count":1,"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/posts\/2729\/revisions"}],"predecessor-version":[{"id":4961,"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/posts\/2729\/revisions\/4961"}],"wp:attachment":[{"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/media?parent=2729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/categories?post=2729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/tags?post=2729"},{"taxonomy":"topics","embeddable":true,"href":"https:\/\/helpcenter.greyd.io\/wp-json\/wp\/v2\/topics?post=2729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}