the_title()
will directly output the title – for your purpose in a string manipulation, you need to use get_the_title()
https://developer.wordpress.org/reference/functions/get_the_title/
you also have some php syntax error;
try to use:
<?php
echo str_replace( "(Blu-ray)"," ", get_the_title() );
?>
Related Posts:
- How do I use WP_query with multiple post IDs?
- How to include checkbox in widget backend form?
- esc_attr() right way and use
- Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?
- Where to include php files in wordpress and how to refer to them later [closed]
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to add a featured image to a existing post via php?
- How to add 2 posts under another post? Formatting should be intact
- Can’t Find a Way to Edit the Home Page Content [closed]
- Fatal error: Call to undefined function wpsc_cart_item_count()
- wp_handle_upload_prefilter valid date from input file
- No wp-config.php file on local install of wordpress – site still displays
- Woocommerce Custom CSV export
- integrating external php library into wordpress- the right way
- Browser title script ignoring is_page /else conditional [closed]
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- How to limit the content coming from wordpress shortcodes?
- How to get 2 or multiple custom post types in wordpress functions.php
- Interrupting $html.= ‘ for IF statement
- Asking popup for delete post in WordPress [closed]
- Change description on specific WooCommerce product status change
- WP nonce invalid
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- Woocommerce redirect thankyou page based on product ID doesn’t empty Cart
- Create WP_Query to search for posts by their categories or their parent/child categories
- add_action shortcut?
- How to deal with checkboxes in edit page?
- Must I download entire WP directory for each separate instance/website that uses WP?
- My custom wp-admin php files stopped working
- search and replace preword from author
- Add meta noindex to post if it has a specific taxonomy
- Get page that displays all children of taxonomy parent
- WordPress default Search function inconsistent in WooCommerce Product Titles
- Function to capture a value and store it in a variable
- Displaying Hierarchical custom taxonomy
- Open post-content in archive page in a Modal box with bootstrap
- Creating own shortcode – echoeing php variable based on JS variable
- Checking array against author id in loop
- How do I Turn This Into An if statement?
- Sort meta-value in the sequence array in pre_get_post
- How do I link a button I created in theme customizer to a function?
- Show a different code on front page to other pages
- Make PHP work with HTML tags
- Which is the correct way to conditionally enqueue a CSS file?
- how to remove colon and white space in a string by php
- Admin ToolBar not being displayed at top of site
- Why are the details of my todo not saving?
- Theme activation hook in php class
- Tell WP register script to load a script only when the entire page is loaded
- anyway to put inside a $outprint=sprintf()
- How do I get an external php page to load using javascript
- What does $_GET[‘iphone’] do?
- Add title=”” to A PHP Code
- What’s the best way to include PHP code in pages?
- Line breaks inside shortcode variable
- Undefined index for default custom theme option
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- woocommerce wc_create_order(); is creating multiple orders instead of one?
- Override Admin menu icon
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- Proper way to use WordPress function with AJAX PHP file
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- List of Events with Multiple Dates: Only NEXT Date
- Including Custom fields within the_content
- Functions.php and includes
- Can/should we delete wordpress cron jobs with no action?
- Accessing an instanciated class
- Error while loading wordpress site “Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in /home
- Rewrite rule don’t work in wordpress on xamp
- Display Visual Composer shortcode if a post belongs in specific categories
- How to translate breadcrumbs
- wp_Query with mutuplea values returns all posts
- reset data of an array
- product_type_options get saved value [closed]
- How to stop hiding buttons forward / backward in pagination?
- How to create a widget with a populated dropdown?
- Trying to reload page with update_option_{$option} hook causing infinite reload
- Error inserting into custom table – Object of class wpdb could not be converted to string [closed]
- Limit content size by character or word in database
- Set user status to absent on WordPress
- Customizer: How to Sanitize a Decimal Number Range
- Get the image title and alt from custom query
- How to Retrieve All Category Images on Front-End
- Switch position of elements in the footer [closed]
- Problem with ajax request and directory structure after site migration
- uploading a new theme to live server
- Access methods in plugin template
- Display post from a category
- WordPress HTML Helper
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- Notice: Undefined index: fix with isset [closed]
- Amending PHP for WordPress Theme
- get_permalink returning first letter
- Send foreach $_post method to contact form 7 [closed]
- Null value given when confirming email’s
- Predefine Magazine Style Layouts
- Custom taxonomy with page post type – WordPress
- Alternative to php echo within code
- Why does WordPress not send the user the email to add a password?
- How to put a class in the p tag automatically added by the_content() in the wordpress loop?