{"id":2880,"date":"2018-02-26T09:38:06","date_gmt":"2018-02-26T09:38:06","guid":{"rendered":"https:\/\/docs.contentviewspro.com\/?p=2880"},"modified":"2023-12-29T02:35:49","modified_gmt":"2023-12-29T02:35:49","password":"","slug":"modify-pagination-label-first-last-prev-next","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/modify-pagination-label-first-last-prev-next\/","title":{"rendered":"Pagination &#8211; modify label (first, last, prev, next) in the &#8220;Normal&#8221; pagination"},"content":{"rendered":"<p>Please add this code to file <strong>functions.php<\/strong> in the theme&#8217;s folder:<\/p>\n<pre style=\"font-size:13px\">\n\/\/ Content Views - Modify pagination label: first, last, prev, next\nadd_filter( 'pt_cv_pagination_label', 'cvp_theme_pagination_text', 100, 1 );\nadd_filter( 'pt_cv_pagination_text', 'cvp_theme_pagination_text', 100, 1 );\nfunction cvp_theme_pagination_text( $args ) {\n\t$args[ 'first' ] = 'First_text_here';\n\t$args[ 'last' ]\t = 'Last_text_here';\n\t$args[ 'prev' ]\t = 'Previous_text_here';\n\t$args[ 'next' ]\t = 'Next_text_here';\n\n\treturn $args;\n}\n<\/pre>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please add this code to file functions.php in the theme&#8217;s folder: \/\/ Content Views &#8211; Modify pagination label: first, last, prev, next add_filter( &#8216;pt_cv_pagination_label&#8217;, &#8216;cvp_theme_pagination_text&#8217;, 100, 1 ); add_filter( &#8216;pt_cv_pagination_text&#8217;, &#8216;cvp_theme_pagination_text&#8217;, 100, 1 ); function cvp_theme_pagination_text( $args ) { $args[ &#8216;first&#8217; ] = &#8216;First_text_here&#8217;; $args[ &#8216;last&#8217; ] = &#8216;Last_text_here&#8217;; $args[ &#8216;prev&#8217; ] = &#8216;Previous_text_here&#8217;; $args[ &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/modify-pagination-label-first-last-prev-next\/\"> <span class=\"screen-reader-text\">Pagination &#8211; modify label (first, last, prev, next) in the &#8220;Normal&#8221; pagination<\/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],"class_list":["post-2880","docs","type-docs","status-publish","hentry","doc_category-adjustment","doc_tag-custom-code"],"year_month":"2026-09","word_count":72,"total_views":0,"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\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2880","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=2880"}],"version-history":[{"count":2,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2880\/revisions"}],"predecessor-version":[{"id":5569,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2880\/revisions\/5569"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=2880"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=2880"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=2880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}