Linux 软件免费装
Banner图

Read More Excerpt Link

开发者 teckel
更新时间 2023年2月26日 06:48
捐献地址: 去捐款
PHP版本: 2.9.0 及以上
WordPress版本: 6.2
版权: GPLv3 or later
版权网址: 版权信息

标签

excerpt link read readmore more archive words length read more ellipsis

下载

详情介绍:

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.

安装:

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:

屏幕截图:

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

常见问题:

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.

更新日志:

v1.5 - 2/1/2021 v1.4 - 5/13/2016 v1.3 - 4/1/2016 v1.2 - 3/14/2016 v1.1 - 3/10/2016 v1.0 - 3/9/2016