這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Read More Excerpt Link

外掛說明

Try it out on a free dummy site here => https://demo.tastewp.com/read-more-excerpt-link

When WordPress makes an excerpt from your post content, it crops the content and adds an ellipsis […] to the end. This plugin changes the ellipsis to a Read More link to the full post content.

You can change the Read More link text to anything you wish from the Read More Excerpt submenu on the WordPress Settings menu.

Also from the Read More Excerpt submenu, you can specify the excerpt word length (WordPress defaults to 55 words).

Additionally, you can force the Read More link to show even when an excerpt is entered or when a read more tag is added to the content. This is turned on from the Read More Excerpt submenu with the Show More Frequently checkbox.

The Read More link uses the class read-more-link, so you can stylize the link any way you wish.

螢幕擷圖

  • Read More Excerpt Link Settings.
  • Read More Excerpt Link turns this…
  • To this!

安裝方式

For an automatic installation through WordPress:

  1. Select Add New from the WordPress Plugins menu in the admin area.
  2. Search for Read More Excerpt Link.
  3. Click Install Now, then Activate Plugin.

For manual installation via FTP:

  1. Upload the read-more-excerpt-link folder to the /wp-content/plugins/ directory.
  2. Activate the plugin from the Plugins screen in your WordPress admin area.

To upload the plugin through WordPress, instead of FTP:

  1. From the Add New plugins page in your WordPress admin area, select the Upload Plugin button.
  2. Select the read-more-excerpt-link.zip file, click Install Now and Activate Plugin.

Optional Settings:

  • To change the Read More link text, visit the Read More Excerpt submenu on the WordPress Settings menu.
  • You can also change the excerpt word length from the same Read More Excerpt submenu.
  • To show an ellipsis “…” at the end of a truncated excerpt (but before the “Read More” link), check the Include Ellipsis after Excerpt checkbox.
  • To show the Read More link even when an excerpt is entered or when a read more tag is added to the content, check the Show More Frequently checkbox.

常見問題集

How do I change the “Read More” link text to something else?

In the WordPress Settings menu, select the Read More Excerpt submenu, where you can modify the default Read More text link.

How do I change the length of the excerpt?

WordPress defaults to an excerpt length of 55 words. You can change this from the WordPress Settings menu, select the Read More Excerpt submenu where you can modify the excerpt word length.

Why isn’t “Read More” showing on all pages?

Normally, WordPress doesn’t show a read more ellipsis if an excerpt is entered as part of the post. Also, WordPress doesn’t show the read more ellipsis if a read more tag is placed in the content before the set excerpt legnth (defaults to 55 words). To change this, from the WordPress Settings menu, select the Read More Excerpt submenu where you can active the Show More Frequently option. This will force the Read More to show whenever there’s post content.

How can I stylize the “Read More” link?

Here’s a suggestion:

a.read-more-link {
    font-size: 0.9em;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}
a.read-more-link:before {
    content: "(";
}
a.read-more-link:after {
    content: ")";
}

Why isn’t the “Read More” showing at all?

There’s also some over-zealous themes that re-write complete sections of WordPress code for no good reason. Elegant Themes is a good example of a theme company that makes highly bloated themes that re-write much of the WordPress normal operation. Basically, some themes totally ignore the perfectly working WordPress auto-excerpt and create their own. When themes do this, the Read More Excerpt plugin is ignored as the theme no longer calls the standard WordPress excerpt functions (which Read More Excerpt is hooked into). Other than making modifications to your theme, there’s nothing any plugin can do when themes don’t use the WordPress hooks and hard-code new functionality instead.

It displays “Read More” but without a link?

This is rare, but can happen when a theme is not strictly calling the get_the_excerpt() function but doing something with the result (like stripping HTML tags). If you know how to create a child of your template and make slight modifications to that child you can easily correct this. Start by looking at the theme’s archive.php file and following any get_template_part() calls from there. It’s best to not make changes directly to an off the shelf theme, as updates will override any changes you make. Creating a child theme is a better method of making changes to an off the shelf theme.

使用者評論

2018 年 6 月 27 日
Perfect plugin if you just need to change the length of excerpts or the “read more” text. Simple, easy to use, nothing superfluous.
2017 年 3 月 24 日
After tearing my hair out for hours, I found this plugin. Easy to implement and customize. Exactly what I needed! Thanks!!!
2017 年 3 月 6 日 1 則留言
I signed up to wordpress.org just to do a review on this plugin. It works very well and really useful on my website [ link redacted, please do not post links in reviews ] Cheers Nerd
2016 年 9 月 3 日
This plugin is easy to use. I had a compatibility issue with my theme and the developer emailed me back right away with suggestions on how to fix the issue. It worked seamlessly. I recommend this for every Wordpress site to get rid of the … and add a “Read More” link. You can check it out here at Jonnikolaicarlson.com Nice job Tim.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Read More Excerpt Link〉的開發相關工作。

參與者

將〈Read More Excerpt Link〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

v1.6.1 – 2/25/2023

  • Nonce added to prevent CSRF vulnerability.

v1.6.0 – 2/24/2023

  • Added nonce for CSRF protection, verified working with WordPress v6.2

v1.5 – 2/1/2021

  • Updated contact email address, verified working with WordPress v5.6

v1.4 – 5/13/2016

  • Option to include an ellipsis “…” at the end of a truncated excerpt (but before the “Read More” link).

v1.3 – 4/1/2016

  • Won’t show the read more excerpt link if the post has no content (otherwise it would link to a blank page).

v1.2 – 3/14/2016

  • Added option Show More Frequently to the Read More Excerpt submenu under Settings.
  • Added descriptions to settings fields.

v1.1 – 3/10/2016

  • Added Read More Excerpt submenu to the Settings menu.
  • From the Read More Excerpt submenu the Read More text link can be modified.
  • From the Read More Excerpt submenu the excerpt word length can be modified.

v1.0 – 3/9/2016

  • Initial release.