OK.
I used this code that I found on your website and thought that was the reason the conditional read more link didn’t work:
/**
* Remove the default Timeline Express read more links
* @param string $read_more Default HTML markup for the read more link.
* @param integer $post_id Post ID of the current announcement iteration.
* @return null
function custom_timeline_express_readmore( $read_more, $post_id ) {
return '';
}
add_filter( 'timeline_express_read_more_link', 'custom_timeline_express_readmore', 10, 2 );
/**
* Generate a new custom 'Read More' link for Timeline Express
* @return string HTML markup for the new read more link.
function generate_custom_read_more_link() {
global $post;
echo wp_kses_post( '<a href="' . get_the_permalink( $post->ID ) . '" class="custom-class">Les videre</a>' );
}
add_action( 'timeline-express-after-excerpt', 'generate_custom_read_more_link' );
The new code is simpler, which is great, but conditionatl Read more still doesn’t work.
Please take a look at the linked page.