| 开发者 | josevarghese |
|---|---|
| 更新时间 | 2026年3月27日 05:25 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[read_more_button] anywhere in post content for manual control./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! Use the [read_more_button] shortcode anywhere in post content to manually control which content gets truncated. It 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]
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 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.