WordPress.org

Ready to get started?Download WordPress

Forums

Display full content using video post format (2 posts)

  1. helpmeplease41
    Member
    Posted 1 year ago #

    So in my template I can post using the video format in WP. If I have a lot of characters it doesn't show when I publish the post only some of the content shows with three dots in the content.

    for example please see here: http://tinyurl.com/aso78th

    How can I get it to show an unlimited amount of content using the video format to post content. I have been searching all day 5+ hours with know luck. I think it's to do with excerpts but I can't figure it out and I'm not great at coding.

    Any help would be much appreciated!

    Thanks

  2. Jme
    Member
    Posted 1 year ago #

    If I am understanding you correctly:

    /* CHANGE EXCERPT LENGTH */
    function custom_excerpt_length( $length ) {
    
    if(has_post_format('video')) {
    return 1500;
    }
    else {
    return 100;
    }
    
    }
    
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

Topic Closed

This topic has been closed to new replies.

About this Topic