• Skip to main content

Victor Font Consulting Group, LLC

The DEX Intranet Specialists

Call Us:

+1 919-604-5828

  • Home
  • Care Plans
    • Care Articles
    • Optional Subscriptions
  • Consultations
  • Products
    • Code Snippets
    • Public GitHub Repositories
    • Gist Snippets
    • Pastebin Snippets (Free)
    • Free Plugins
  • FAQs
  • Support
    • Graphic Design
  • Contact
    • Speakers
    • Portfolio
  • Resources
    • Free WordPress Video Training
    • Tutorials
    • Articles
    • Cybersecurity
    • EU Referral Network
You are here: Home / Code Snippet / How to Change the WordPress Read More […] Text

How to Change the WordPress Read More […] Text

By Victor M. Font Jr.
March 6, 20151 Comment

One frequently asked question that users pose is “How do I change the WordPress […] text on post excerpts?”

In many cases, not only do people ask about changing the text, but they would also like to turn the text into a link to the post. Add one of the code snippets below to your functions.php and you will achieve your desired goal.

add_filter( 'the_excerpt', 'vmf_read_more_custom_excerpt' );
function vmf_read_more_custom_excerpt( $text ) {
	if ( strpos( $text, '[…]') ) {
		$excerpt = str_replace( '[…]', '[Read More…]', $text );
	} else {
		$excerpt = $text;
	}
	return $excerpt;
}
add_filter( 'the_excerpt', 'vmf_read_more_custom_excerpt' );
function vmf_read_more_custom_excerpt( $text ) {
	if ( strpos( $text, '[…]') ) {
		$excerpt = str_replace( '[…]', '[Read More…]', $text );
	} else {
		$excerpt = $text;
	}
	return $excerpt;
}

You can also use these snippets for content limited excerpts by changing "the_excerpt" in the add-filter statement to "the_content_limit".

  • 0share
  • Facebook0
  • Twitter0
  • Pinterest0
  • LinkedIn0
  • Print
  • SMS0

About Victor M. Font Jr.

Victor M. Font Jr. is an award winning author, entrepreneur, and Senior IT Executive. A Founding Board Member of the North Carolina Executive Roundtable, he has served on the Board of Advisors, of the North Carolina Technology Association, the International Institute of Business Analysis, Association of Information Technology Professionals, Toastmasters International, and the North Carolina Commission for Mental Health, Developmental Disabilities, and Substance Abuse Services. He is author of several books including The Ultimate Guide to the SDLC and Winning With WordPress Basics, and Cybersecurity.

Reader Interactions

VictorFont.com runs on the Genesis Framework

Genesis FrameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Check out the incredible features and the selection of designs. It's that simple—start using Genesis now!

Click here to download The Genesis Guide for Absolute Beginners (PDF - 1.4 MB)

Leave a Reply Cancel reply

Your email address and website will not be published. Required fields are marked *
Posting a comment means that you agree with and accept our Comment & Product Review Policy

Comments

  1. Taylor

    December 15, 2016 at 11:49 am

    Thank you Victor this is just what I needed for the magazine pro theme I am developing!

    Reply

Call: +1 919-604-5828

Send us an E-mail

Accessibility Statement | Affiliate Marketing Disclosure | Capability Statement

Cookie Policy | Comment & Product Review Policy | Privacy Policy | Site Map | Terms & Conditions

Copyright © 2003–2023 Victor M. Font Jr.

Return to top of page