• Resolved demiromer

    (@demiromer)


    Although I edit the post content, the excerpt remained as imported on blog view.
    is there any option to import without excerpt or edit the excerpt without directly doing it from db?
    thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can edit the excerpt right in the WordPress admin for that post.

    You may need to go into the “screen options” tab (top right) of the editor to make sure Excerpt is selected to show.

    To do it programmatically, you can use the tube_vc_filter_post_pre_insert filter to wipe out the excerpt before it gets saved.

    Drop this in your child theme’s functions.php or a plugin…

    add_filter( 'tube_vc_filter_post_pre_insert', 'my_tube_vc_filter_post_pre_insert' );
    
    function my_tube_vc_filter_post_pre_insert( $my_post ){
    
      $my_post['post_excerpt'] = '';
    
      return $my_post;
    
    }

    Please mark as resolved if this works for you.

    • This reply was modified 6 years, 7 months ago by toddlevy.
    Thread Starter demiromer

    (@demiromer)

    yeah I missed the first option that worked and enough for me
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot edit excerpt of the post’ is closed to new replies.