I need to check whether a post exceeds 300 words or not. If it exceeds 300 words, then I have to provide a link to read more about the post.How can I do it? Please help me.I am new to word press.
basically you need to change the default EXCERPT length of your posts.
there are a couple of ways to solve this issue:
Install this plugin at : http://wordpress.org/plugins/advanced-excerpt/
This will allow you to change the the excerpt length from the admin panel.
Go to your functions.php in your theme at /wp-content/themes/YOUR_THEME_NAME/functions.php
Add the following code:
You can change 200 to any number you want like 300.
As for showing your summary instead of the full post, you can follow the instructions from wordpress.com like so : http://en.support.wordpress.com/splitting-content/more-tag/
Hope it helps!
|show 3 more comments|