ID ) ); if ( empty( $text ) ) { $text = __( 'Previous Post', 'athlonx' ); } echo '' . esc_html( $text ) . ''; } else { echo ''; } if ( is_a( $next, 'WP_Post' ) ) { $text = get_the_title( $next->ID ); if ( empty( $text ) ) { $text = __( 'Next Post', 'athlonx' ); } echo '' . esc_html( $text ) . ''; } else { echo ''; } } else { if ( get_previous_posts_link() || get_next_posts_link() ) { ?>