wordpress-icon

WordPress Resources -1-

James Blog, Links, WP Ideas Leave a Comment

1. Include WordPress Template Files In Your Theme 2. WordPress Query Arguments 3. How to change the “posts” label to “articles” 4. Easy WordPress pagination without plugins 5. Protect your WordPress site with .htaccess 6. 10 Best HTML5 Audio Players 7. Useful WordPress Tools, Themes and Plugins 8. 20 Free and Premium WordPress Newspaper Themes 9. 15+ Free and Premium …

ellipsis

Ellipses

James WP Ideas Leave a Comment

Sometimes, the excerpt function just does not cut it and you might think to yourself, I wish I could replace those […] three dots with something more useful. Well, worry no more… Just add this code to your functions.php and change the ellipses to whatever you wish. [php] function trim_excerpt($text) { return rtrim($text,'[…]’); } add_filter(‘get_the_excerpt’, ‘trim_excerpt’); [/php]

kate

Excerpt length – how to change

James WP Ideas Leave a Comment

It can be very annoying when you are creating a theme, when the excerpt function [with a default word count of 55], controls how you structure a layout. Luckily, there are ways of getting around this. Probably the most easy of all, simply add the following code to your functions.php file and change the amount of words to suit your …