| 开发者 | josevarghese |
|---|---|
| 更新时间 | 2026年6月26日 07:16 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[read_more_button] anywhere in post content for manual control. Wrap content to use line-count logic, or place it self-closing [read_more_button] at the exact split point./wp-content/plugins/click-to-read-more-button directory, or install the plugin through the WordPress plugins screen directly.Go to Settings > Read More Button in your WordPress admin. You can customize:
Yes! In the settings page, you can select which post types should display the Read More button. By default, it's enabled for posts only, but you can enable it for pages and all public custom post types.
In the settings page, there's an "Exclude Pages/Posts by ID" field where you can enter comma-separated IDs of pages/posts you want to exclude (e.g., 1,2,3).
The full content is revealed smoothly and a "Show Less" button appears, allowing users to collapse the content back at any time. Both button labels are configurable from the settings page.
Yes! The [read_more_button] shortcode has two modes:
Placement marker: place [read_more_button] (self-closing) at the exact point in your content where the button should appear. Everything above it is visible; everything below is hidden until the reader clicks.
Wrapping mode: wrap content with [read_more_button]...[/read_more_button] and the plugin applies its line-count logic inside that block. Supports three optional attributes:
text - overrides the Read More button label (e.g., text="Continue Reading")lines - overrides the line count (e.g., lines="10")collapse_text - overrides the Show Less button label (e.g., collapse_text="Hide")[read_more_button text="Read Full Article" lines="8" collapse_text="Hide"][/read_more_button]
When either shortcode mode is used, the automatic filter is skipped for that post. The shortcode takes full control.
Yes! Search for "Read More Button" in the block inserter. Inserting this block places a visual divider in the editor. Everything below it will be hidden behind the Read More button on the frontend. Only one marker block per post is allowed. When the block is used, the automatic line-count filter is skipped for that post.
Yes! The plugin automatically detects all public custom post types and includes them in the post type selection options.
No, the plugin is lightweight and only loads its scripts and styles on pages where the Read More functionality is enabled. It has no impact on pages where it's not being used.
Yes, you can set the number of lines in the settings page. The default is 14 lines, but you can adjust this from 1 to 50 lines based on your content needs.
The plugin uses character counting (approximately 90 characters per line) to determine when to show the button. The actual visual lines may vary based on your content length, font size, screen width, and theme styling.
Yes, the plugin is fully prepared for translation and follows WordPress internationalization standards.
Yes, the plugin is compatible with all major caching plugins as it doesn't use any server-side processing for the Read More functionality.
[read_more_button] shortcode with a placement-marker mode: using it self-closing (no enclosing content) splits the post at that exact point, giving classic-editor users the same manual control without wrapping all content in the shortcode.[read_more_button] shortcode for manual control over which content is truncated. Supports text, lines, and collapse_text attributes.aria-expanded attributes to Read More and Show Less buttons for screen reader support.