Customize your feed excerpts by simply using the <!– more –> tag in posts.
FAQ
Installation Instructions
Prerequisites
If you don’t meet the below requirements, I highly recommend you upgrade your WordPress install or move to a web host
that supports a more recent version of PHP.
- Requires WordPress version 3.2 or greater
- Requires PHP version 5 or greater ( PHP version 5.2.4 is required to run WordPress version 3.2 )
The Easy Way
- In your WordPress admin, go to ‘Plugins’ and then click on ‘Add New’.
- In the search box, type in ‘mPress Custom Feed Excerpts’ and hit enter. This plugin should be the first and likely the only result.
- Click on the ‘Install’ link.
- Once installed, click the ‘Activate this plugin’ link.
The Hard Way
- Download the .zip file containing the plugin.
- Upload the file into your
/wp-content/plugins/
directory and unzip
- Find the plugin in the WordPress admin on the ‘Plugins’ page and click ‘Activate’
Usage Instructions
Once the plugin is installed and activated, go to ‘Reading’, which is under ‘Settings’ in the WordPress admin menu. Make sure you are using the ‘Full text’ option for your WordPress feeds. Now, just use the <!–more–> tag in any post to create the cut-off point for the feed excerpt!
NOTE: To customize the link text, just add your text to the more tag, like this: <!–more My custom text…–>
Filters
All filters have access to the current post via the get_post()
function.
mpress_custom_feed_excerpts_default_link_text
– Filters the default link text. Single parameter is a string containing the default link text.
mpress_custom_feed_excerpts_continue_reading_link
– Filters the entire link. Single parameter is a string containing the link markup.
ChangeLog
1.1
- Tested in WordPress version 4.8
- Simplified logic to rely more on WordPress core functions.
- Added a
mpress_custom_feed_excerpts_default_link_text
filter for easily customizing the default link text.
1.0
- Tested in WordPress version 4.5.2
0.3
- Added the ability customize the link text.
0.2
- Added a continue reading link
0.1