WordPress.org

Ready to get started?Download WordPress

Forums

D5 Business Line
[resolved] missing / broken function ? (3 posts)

  1. wpprogrammeurs.nl
    Member
    Posted 1 year ago #

    FYI, theme throws error :

    Call to undefined function d5businessline_continue_reading_link() ........ public_html/sandbox/wp-content/themes/d5-business-line/functions.php on line 98

    http://wordpress.org/extend/themes/d5-business-line/

  2. d5creation
    Member
    Theme Author

    Posted 1 year ago #

    The problem occurs when you use the_excerpt() instead of the_content()
    Open the functions.php and go to Line no 97. Remove the 04 lines

    function d5businessline_auto_excerpt_more( $more ) {
    	return ' …' . d5businessline_continue_reading_link();
    	}
    	add_filter( 'excerpt_more', 'd5businessline_auto_excerpt_more' );

    and paste the following lines

    function d5businessline_excerpt_length( $length ) {
    	global $blExcerptLength;
    	if ($blExcerptLength) {
        return $blExcerptLength;
    	} else {
        return 50; //default value
        } }
    	add_filter( 'excerpt_length', 'd5businessline_excerpt_length', 999 );
    
    	function d5businessline_excerpt_more($more) {
           global $post;
    	return '<a href="'. get_permalink($post->ID) . '" class="read-more">Read the Rest...</a>';
    	}
    	add_filter('excerpt_more', 'd5businessline_excerpt_more');
  3. wpprogrammeurs.nl
    Member
    Posted 1 year ago #

    thank you much ..... solution works.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic