• Resolved maytro

    (@maytro)


    Hello,

    I’ve created a website with the plugin and I inserted an ‘excerpt’ to video pages.
    currently, I can’t success to define the ‘excerpt’ to appear on a single video page.
    It can appear only on gallery pages.
    Is there an option to define this? (I’m a programmer)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Our single video page is a Custom Post Type called “aiovg_videos” which simiar to the standard WordPress “POSTS” page dispaly. So, it doesn’t display the excerpt. Instead it can show the complete description of the video. Please make sure you have some content in the Editor field (description) of our video form.

    If still you want to show the excerpt and not the description, please follow the instructions below,

    1. Open the file “wp-content/plugins/all-in-one-video-gallery/public/templates/single-video.php”

    2, find the line,
    <div class="aiovg-description"><?php echo wp_kses_post( $content ); ?></div>

    3. Replace it as,
    <div class="aiovg-description"><?php the_excerpt(); ?></div>

    4. Save the changes and try now.

    Hope, this solved your issue!

    But, instead of modifying the core plugin file directly, we suggest you to write a override. So, it doesn’t break when you upgrade the plugin. Please check https://plugins360.com/all-in-one-video-gallery/child-themes-and-templates/

    Thread Starter maytro

    (@maytro)

    Thank you very much for your answer.
    I appreciate the support you’ve given me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add ‘excerpt’ to single video’ is closed to new replies.