{"id":2080,"date":"2017-09-12T05:30:18","date_gmt":"2017-09-12T05:30:18","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=2080"},"modified":"2023-12-27T10:57:53","modified_gmt":"2023-12-27T10:57:53","password":"","slug":"customize-read-more-for-each-post","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/customize-read-more-for-each-post\/","title":{"rendered":"Customize &#8220;Read More&#8221; text for each post"},"content":{"rendered":"<p>By default, you can customize the &#8220;Read More&#8221; text for all posts in View easily, using the built-in setting.<br \/>\nIf you want to customize this text for each post, you can use simple steps below:<\/p>\n<ul>\n<li>add new custom field:<br \/>\n<code>cvp_readmore_text<\/code><br \/>\nfor posts which you want to customize the &#8220;Read More&#8221; text (<a href=\"http:\/\/contentviewspro.com\/documentation\/article\/add-new-custom-field-wordpress-post\/\" target=\"_blank\" rel=\"noopener noreferrer\">click to read about how to add new custom field<\/a>)<\/li>\n<li>add this code to file <strong>functions.php<\/strong> of your active theme:\n<pre style=\"font-size:13px\">\n\/\/ Content Views Pro - Customize \"Read More\" text for each post\nadd_filter( 'pt_cv_dargs_others', 'cvp_theme_change_readmore_text_per_post', 999, 2 );\nfunction cvp_theme_change_readmore_text_per_post( $dargs, $post_idx ) {\n\tglobal $post;\n\t$meta = get_post_meta( $post->ID );\n\tif ( !empty( $meta[ 'cvp_readmore_text' ][ 0 ] ) ) {\n\t\t$dargs[ 'field-settings' ][ 'content' ][ 'readmore-text' ] = $meta[ 'cvp_readmore_text' ][ 0 ];\n\t}\n\n\treturn $dargs;\n}\n<\/pre>\n<\/li>\n<\/ul>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, you can customize the &#8220;Read More&#8221; text for all posts in View easily, using the built-in setting. If you want to customize this text for each post, you can use simple steps below: add new custom field: cvp_readmore_text for posts which you want to customize the &#8220;Read More&#8221; text (click to read about &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/customize-read-more-for-each-post\/\"> <span class=\"screen-reader-text\">Customize &#8220;Read More&#8221; text for each post<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[25],"doc_tag":[21,31],"class_list":["post-2080","docs","type-docs","status-publish","hentry","doc_category-adjustment","doc_tag-custom-code","doc_tag-read-more-button"],"year_month":"2026-09","word_count":135,"total_views":"1","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"CVP","author_nicename":"cvp","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/cvp\/"},"doc_category_info":[{"term_name":"Adjustment","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/adjustment\/"}],"doc_tag_info":[{"term_name":"custom PHP code","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/custom-code\/"},{"term_name":"read more button","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/read-more-button\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=2080"}],"version-history":[{"count":1,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2080\/revisions"}],"predecessor-version":[{"id":5440,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2080\/revisions\/5440"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=2080"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=2080"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}