Nothing appears using get_the_excerpt() in category.php

I have checked the code. There are some issues in your code : There is not any method ‘coauthors_posts_links’ but WordPress provides a method the_author_posts_link();. Also for the ‘get_the_post_thumbnail()’ function 2nd parameter must be image size like $thumb = get_the_post_thumbnail($post, ‘thumbnail’,array(‘class’ => ‘front-page-tease-sm’)); I have updated the code. For ‘coauthors_posts_links()’ no idea what you want … Read more

Modify loop to include all post statuses not just ‘published’

Okay, I think to start you need to change line 470 of the file includes/admin/class-learndash-admin-binary-selector.php from: ‘post_status’ => array(‘publish’), to ‘post_status’ => array(‘any’), If this doesn’t work on its own, there may be other places you need to change this as well – do a global file search on ‘post_status’ and look for places where … Read more

Trim excerpt to first paragraph

You can match this with regEx and easily choose the amount of paragraphs to return. // in context function triangle_x_excerpt( $text, $raw_excerpt ) { $content = apply_filters( ‘the_content’, get_the_content() ); $text = ( preg_match( sprintf( ‘~(<p>.+?</p>){%d}~i’, 1 ), $content, $matches ) ) ? $matches[ 0 ] : $content; return preg_replace( “/<img[^>]+\>/i”, “”, $text ); } … Read more