Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    Hi,

    The plugin strips out any shortcodes, because more often than not they are ideally not excerpt material. I believe WP also does the same thing.

    I’m not sure as to Visual Composer. I don’t know how the plugin (I assume you are talking about a plugin) saves the excerpts. If you do know how visual composer fetches it’s excerpt, you could potentially override the excerpt generated by the plugin with code similar to this to your themes functions.php. You’ll need to use the correct function to get hold of the excerpt of Visual Composer:

    function filter_crp_excerpt( $excerpt, $id ) {
    
         $vc_excerpt = FUNCTION TO GET THE VISUAL COMPOSER EXCERPT ( $id );
    
         if ( $vc_excerpt ) {
              $excerpt = $vc_excerpt;
         }
         return $excerpt;
    }
    add_filter( 'crp_excerpt', 'filter_crp_excerpt', 10, 2);
Viewing 1 replies (of 1 total)

The topic ‘no excerpt with visual composer’ is closed to new replies.