WordPress.org

Ready to get started?Download WordPress

Forums

Sideblog: excerpt length - 2 options only? (3 posts)

  1. rubytuesday
    Member
    Posted 4 years ago #

    Hi all, I'm using Sideblog and I'd just like to absolutely clear that the options below are all we have for modifying the Sideblog's formatting. Someone has previously asked whether <!--more--> works, which was never resolved. I'd also like to know whether Kates or some other clever person has sorted a way of simply limiting the Sideblog excerpt length to the first paragraph of the post itself. Thank you!

    Display Format Tags

    * %title%
    * %title_url%
    * %content%
    * %permalink%
    * %postdate%
    * %postdate_url%
    * %excerpt%
    * %excerpt_<length>% - e.g. %excerpt_200% (will cut after 200 words)
    * PHP Date Format - e.g. %m%/%d%/%Y% - 08-11-2006

  2. asfodel
    Member
    Posted 4 years ago #

    I'd like to know the answer to this as well. Actually, I would be okay with the excerpt option as is, except that when I apply it there are no links in the sideblog post in the sidebar, (the links are only visible (and clickable) if you actually go to the single post page), which means I can't use the excerpt. I have tried using the more tag but it does not work.

    I'm using version 3.8 of the Sideblog plugin.

  3. zOmbiesundaYs
    Member
    Posted 4 years ago #

    Login to your WordPress Site and perform the following steps:

    1. Navigate to Appearance section in the Sidebar and Click Editor
    2. Click the Theme Functions or "functions.php" template file
    3. Just above the closing <?php } ?> tag add the following code:

    `add_filter('excerpt_length', 'my_excerpt_length');
    function my_excerpt_length($length) {
    return 20; }`

    http://www.lancelhoff.com/change-the-excerpt-length-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Topic