restrain filter on get_the_excerpt to queried item in stead of current post

Looking at the documentation for the get_the_excerpt filter, we can see that it receives the WP_Post object representing either the current post or the post which was passed in to the get_the_excerpt() function call. Thus, function q_excerpt_custom( $excerpt, $post ) { if ( get_post_type( $post ) == ‘post’ ) : $excerpt_custom = ‘<a class=”card-permalink” href=”‘ … Read more

url not using query string no longer working

So I never found out why this broke in the first place, but I did find a solution that forces the proper url to work add_action( ‘init’, ‘add_mypage_rule’ ); function add_mypage_rule(){ add_rewrite_rule(‘^item/([^/]*)/?’,’index.php?pagename=item’,’top’); } Sussed out from here: https://stackoverflow.com/questions/18713230/wordpress-url-rewriting-parameters-in-url