: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
use NetworkPosts\Components\NetsPostsHtmlHelper;
if ( ! defined( 'POST_VIEWS_PATH' ) ) {
if ( $shortcode_mgr->get_boolean( 'titles_only' ) ) {
$title_class = 'netsposts-post-titles-only';
$title_class = 'netsposts-posttitle';
$temp = sanitize_quotes( $shortcode_mgr->get( 'wrap_title_start' ) );
$html .= htmlspecialchars_decode( $temp );
* This code creates title link
$title_color = $shortcode_mgr->get( 'title_color' );
if( $shortcode_mgr->has_value( 'title_length' ) ){
$title_length = intval( $shortcode_mgr->get( 'title_length' ) );
$title = netsposts_strip_text_words( $the_post['post_title'], $title_length );
$title_length_chars = intval( $shortcode_mgr->get( 'title_length_characters' ) );
$title = shorten_text_exact( $the_post['post_title'], $title_length_chars );
$title .= esc_html( $shortcode_mgr->get( 'title_after' ) );
$title_style = 'color: ' . $title_color . ';';
if ( $shortcode_mgr->get_boolean( 'include_link_title' ) ) {
if ( !isset( $exclude_title_links) || ! array_has_value( $the_post['ID'], $exclude_title_links ) ) {
$html .= NetsPostsHtmlHelper::create_title_link( array(
'url' => $the_post['guid'],
'title' => $the_post['guid'],
'class' => 'netsposts-posttitle-link',
'open_link_in_new_tab' => $open_link_in_new_tab
$html .= NetsPostsHtmlHelper::create_span($title, $title_class, $title_style );
$html .= NetsPostsHtmlHelper::create_span($title, $title_class, $title_style );
$html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_title_end' ) );