• Hello. I`m totally love this plugin. Great work!

    One little question. Can i show the post excerpt near link of it`s post in one column mode?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    Sorry, I don’t understand your question? Do you want to have a single (one) column knowledge base?

    Guido

    Thread Starter basili0

    (@basili0)

    Sorry for my english ??
    I want to display standart post excerpt near the link in the column.

    For example we have one column with posts.
    Like this:
    – Title Post1
    – Title Post2
    – Title Post3

    Is it possible to make it look like this:
    – Title Post1 – Post1 excerpt
    – Title Post2 – Post2 excerpt
    – Title Post3 – Post3 excerpt

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Aha I understand.. So post title with the excerpt on the right side. But also 1 column?

    For that you should make some changes to plugin itself. If you want I can explain how to do this.

    Unfortunately you will loose all changes again in case of a plugin update.

    Guido

    Thread Starter basili0

    (@basili0)

    Yes, post title with the excerpt on the right side. 1 column.

    Can you explain how to make this changes in plugin files? This will be great.

    Plugin Author Guido

    (@guido07111975)

    Hi,

    1) open file vskb-shortcodes and go to line 44.
    Look for: include 'vskb-list.php';
    Change into: include 'vskb-list-one.php';

    2) create a new PHP file called “vskb-list-one” and paste the contents of file “vskb-list”.
    3) add this underneath line 41:

    
    $return .= ' - ';
    $return .= '<span class="vskb-post-excerpt">'.get_the_excerpt( $single_post->ID ).'</span>';
    

    4) via the Customizer you can add custom CSS for the excerpt, example:

    
    .vskb-post-excerpt {color:#333;}
    

    That’s it!

    If the excerpt is too long for you, you can change it via the excerpt_length() filter.

    Guido

    Plugin Author Guido

    (@guido07111975)

    This excerpt feature might even be added in a future plugin version. I think this is a nice addition.

    Guido

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post Excerpts’ is closed to new replies.