Replace Apostrophe with Space
// Add Shortcode function srp( $atts ) { // Attributes $atts = shortcode_atts( array( 'titleofpost' => '', ), $atts ); $str = str_replace(array('''), ' ', $str); return $str; } add_shortcode( 'searchreplacepaul', 'srp' );