• Resolved ailusia

    (@ailusia)


    Hello, again about this blog: https://klikerlab.pl/wordpress/
    I downloaded the Advanced Excerpt plugin, because I want the sidebar to display excerpts of a few recent posts (maybe 5). But I want only one post (the last) to display full in the blog area.
    Now there are two posts, the recent one is displayed, but the sidebar shows only the recent post’s excerpt – the second one is hidden.
    How can I change this?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    You can edit the index.php file to set the settings of the post [excerpt, content] in the body section of the blog ..and edit the sidebar.php file for the settings of the post excerpt and contents within the loop.

    Thanks,

    Shane G.

    Thread Starter ailusia

    (@ailusia)

    I have this in the sidebar.php file:

    <?php the_advanced_excerpt(‘length=30&custom=1’); ?>

    but I don’t know how to set the number of displayed excerpts. It always displays only one excerpt, of the recent post.

    Hi,

    Change the value of custom from 1 to your desired one which will fix your problem.

    Thanks,

    Shane G.

    Thread Starter ailusia

    (@ailusia)

    That would be easy ?? but it’s more like a true/false attribute, and it should be “no_custom” (now I saw the error). From this plugin’s FAQ:

    The following parameters can be set:

    * length, an integer that determines the length of the excerpt
    * use_words, if set to 1, the excerpt length will be in words; if set to 0, characters will be used for the count
    * no_custom, if set to 1, an excerpt will be generated even if the post has a custom excerpt; if set to 0, the custom excerpt will be used
    * ellipsis, the string that will substitute the omitted part of the post; if you want to use HTML entities in the string, use %26 instead of the & prefix to avoid breaking the query
    * exclude_tags, a comma-separated list of HTML tags that must be removed from the excerpt
    * allow_tags, a comma-separated list of HTML tags that are allowed in the excerpt

    So… it seems that the parameter for number of excerpts must be somewhere else.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Advanced Excerpt – display settings’ is closed to new replies.