Found Image Guerrilla’s Excerpts | Plugin Review Network Skip to Content

Plugin Review Network

Plugin Review Network

an eye on the best wordpress plugins
Show Sidebar Hide Sidebar
[+] Sidebar [-] Sidebar
Plugin:
Rated:
100%
5 Stars (2 votes)

Home

WP.Org

ReadMe

Support
  • Author:
    Mike Smith
Version: 1.0
Requires: WP 3.0
Last Updated:4251 days ago
Downloads:1511
Installations: 100+
Usage Retention:6.62%
Tags:
    excerpt, the excerpt, the_excerpt
Download Plugin Package

Guerrilla’s Excerpts

Released on January 16, 2014.
Download Plugin Package

Version: 1.0

This plugin allows more than the built in `the_excerpt` function in your WordPress themes. It lets you choose the excerpt length, choose which html ta

  • Description
  • Installation


This plugin allows more than the built-in the_excerpt function in your WordPress themes. It lets you choose the excerpt length, choose which html tags are allowed, the link text to full post, the html container of the excerpt (p, div, span or plain text) and whether to show the smilies that are output.

= How to add it to your theme

You will need to find <?php the_excerpt(); ?> and/or <?php the_content(); ?> in your theme and replace it with <?php guerrilla_excerpt('120','Continue Reading','all','p','yes'); ?>. You can also use just the defaults (mentioned below) by adding this code instead <?php guerrilla_excerpt(); ?>

  • '120' is what controls the length of the excerpt output (defaults to '40')
  • 'Continue Reading' is the text for the link to read the full article (defaults to 'Continue')
  • 'all' is the html tags that you're allowing with the output. You can place specific html tags in this space like this <p><a><strong>, you can leave it blank to simply output a large block of text or you can add the word 'all' to use all html tags (defaults to '')
  • 'p' is the container that wraps the link to view the full article. You can use 'p', 'div', 'span', or 'plain' in this spot (defaults to 'p')
  • 'yes' lets smilies show up in the excerpt (defaults to 'no')

= A special thank you

I've been personally using the excerpt re-reloaded with my theme development for a couple of years now and it's been working great but I always ran into the same few issues (not allowing paragraph tags, adding a ... to the end of the content automatically, etc) so I decided to finally do something about it.

Without that plugin, this plugin wouldn't exist, so thank you luca.


  1. Upload the 'GuerrillaExcerpts folder' to the '/wp-content/plugins/' directory or add it directly in your WordPress admin panel
  2. Activate the plugin through the 'Plugins' menu in WordPress=
  3. Find and replace the_excerpt and/or the_content in your theme files with <?php guerrilla_excerpt('120','Continue Reading','all','p','yes'); ?>


 

Click here to cancel reply.

Click here to cancel reply.


*

*


Please copy the string kvnEhc to the field below:

Home | Sitemap | Contact
Network Skin Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.