fixing the undefined variable debugging error
This commit is contained in:
parent
d8f31a0052
commit
dc15fe59b6
|
@ -95,6 +95,6 @@ add_filter( 'excerpt_more', 'custom_excerpt_more' );
|
||||||
|
|
||||||
function all_excerpts_get_more_link($post_excerpt) {
|
function all_excerpts_get_more_link($post_excerpt) {
|
||||||
|
|
||||||
return $post_excerpt . ' [...]<p><a class="btn btn-default understrap-read-more-link" href="'. get_permalink($post->ID) . '">' . __('Read More...', 'understrap') . '</a></p>';
|
return $post_excerpt . ' [...]<p><a class="btn btn-default understrap-read-more-link" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More...', 'understrap') . '</a></p>';
|
||||||
}
|
}
|
||||||
add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');
|
add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');
|
||||||
|
|
Reference in New Issue