Hi Sanjoyroy-
I had this same issue. The plugin developer is using a series of functions adapted from Twenty Eleven to modify the_excerpt()
read-more links. The functions start at line 172 in /wp-content/plugins/q-and-a/inc/functions.php
. If you want to disable them, add these lines to your theme’s functions.php
file:
remove_filter( 'excerpt_more', 'qaplus_auto_excerpt_more' );
remove_filter( 'get_the_excerpt', 'qaplus_custom_excerpt_more' );
remove_filter( 'excerpt_length', 'qaplus_excerpt_length' );
Removing filters can be tricky, sometimes. Read more here: https://codex.www.ads-software.com/Function_Reference/remove_filter
Developer: You can target these functions to only affect the qa_faqs
post type:
/**
* Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link().
*/
function qaplus_auto_excerpt_more( $more ) {
$post_type = get_post_type();
if ( $post_type == 'qa_faqs' ) {
return ' …' . qaplus_continue_reading_link();
}
}
add_filter( 'excerpt_more', 'qaplus_auto_excerpt_more' );
/**
* Adds a pretty "Continue Reading" link to custom post excerpts.
*
*/
function qaplus_custom_excerpt_more( $output ) {
$post_type = get_post_type();
if ( has_excerpt() && ! is_attachment() && $post_type == 'qa_faqs' ) {
$output .= qaplus_continue_reading_link();
}
return $output;
}
add_filter( 'get_the_excerpt', 'qaplus_custom_excerpt_more' );
-David