Well, I never got any input on this and ended up going with the function sanitize_title which is more restrictive than I want (processes the title to be used in a URL — essentially returns a slug for the post), but it’s the best solution I’ve been able to find. By running both the 3rd-party product name and the post_title from WordPress through sanitize_title and then comparing them with strcmp, I’ve gotten close enough to being able to compare the two strings effectively. Granted, this may miss small differences, like changes in punctuation, but it’ll get the important differences (textual) while not reuiring that I continually re-save these names unnecessarily.
Related Posts:
- Fill post titles from post content?
- Using php to overwrite or replace title tag, while using yoast [closed]
- Two title tags in my header
- How can I add title attributes to next and previous post link functions?
- Problem in wordpress with “-“
- How to add subscript and superscript in WordPress page titles
- add_theme_support( ‘title-tag’ ) in conflict with custom titles function
- Modify page title format (when using title-tag)
- Empty title on front page/Home
- REQUIRED: The theme must not used the tags. | REQUIRED: The theme must not call to wp_title()
- Changing “Enter title here” based on post format
- How to get page’s ID if I know the title only?
- WordPress i18n-friendly preg_replace post title
- How to make a H1 different then the Title?
- How to set custom title of custom page template?
- How do I edit the tag without using the deprecated `wp_title()` function?
- Change Default Custom Fields Metabox Name
- Get wp_title() from page ID into a variable
- Remove site name from tag
- SEO meta description and title tag Yoast SEO
- What code do you use to generate the text to go into the HTML title tag?
- Multiple Conditions for Child Page Title
- How come my first blog post and my home page have the same title?
- Where do I change the ACTUAL title tag that is set in the header.php
- Why doesn’t YoastSEO allow me to set the title/description for the home page? [closed]
- Updating post title using wp_update_post
- Change title tag dynamically or within plugin?
- Remove site name from title post
- Hide price & title in store thumbnail dispay? [closed]
- How do I set the blog name?
- How to Change Title Attribute to be different from Page title
- Add anchor text to php
- Set max title length – similar to excerpt length for outside of single.php
- How to edit title on Edit post pages?
- How do I shorten the title lenghs with Elementor theme? [closed]
- Automatically add words if duplicate post titles
- Remove Title of youtube video
- How to Customize “WordPress > Error” Text in Titlebar?
- How to add H4 tag to the_content filter (after content)?
- HeadSpace2 double title on homepage
- Page title is showing category name as well in the google search results
- change title separator
- Change page title dynamically before header is rendered
- Modify conditional titles to include parent and page number
- Why is a category/ tag name prefixed to title of every page?
- Where does Yoast SEO plugin sets the site/page title?
- After I set the title, it over-wrote all the titles for the individual pages
- Cannot use ‘CSS’ in post title
- Wrap the_title_attribute in a H2 within a Conditional Tag?
- How to echo all the_title() without text after last “-“
- set title attribute in wp_get_attachment_image()
- Title tags show twice
- How can I override the post title when a post is set to sticky? [closed]
- disallow publish posts with special title
- How to get current page title inside a page’s template
- Permalink and ACF field
- Remove tagline from the HTML on the home page without plugin?
- Prefix the title tag, if IP address is the dev server
- how to set alt & title for featured image get_the_post_thumbnail
- How to add publish date in the title
- Change meta data of pdf file
- How come I get internal server error even with try catch for get_the_title in functions.php?
- How can I add a title to this ‘maintenance mode’ function?
- Print title page in header of a specific page
- Front page displays different than all other pages?
- Modify link options when hovering over post title
- How to disable publish button if post title exists
- Wp Admin Bar Customizing Labels
- Show post title words one by one [closed]
- Text under post title on frontpage but don’t want it in full post
- How to add a span class in the post title?
- Adding a class to post title considering the title length
- SEO module to change tag title for different listing page
- Title how does page no work in Twenty Eleven
- strtolower
- Hide a page title in WordPress 3.0
- Getting the Image Title (not the post title)
- I want to add number after post tittle for each category
- Add text to the first “title”=>get_the_title($post->ID), and shorten
- Special characters in post_title replaced by ‘?’
- Limit title length
- Remove title bar from post-new.php
- Update all WordPress posts’s title and content then display them in a table
- How do you change the title of the Edit Post page?
- How to get page title () in a different order?
- Reorder title tag and description tag with wpseo_title and wpseo_metadesc
- How can I remove an unwanted character from the main page’s title?
- How do you keep the title of a post. to NOT show when publishing the post?
- Custom title when using shortcode
- Change font and Colours in Menus
- How do I separate the post title from the content in an excerpt coded thus:
- Why I can not modify the appereance of my title web site in google? [closed]
- Add Placeholder in WordPress Editor Content Box
- How to delete posts which have same title?
- Generate page title tag from the content of H1
- Append text after wordpress title
- How to add … after a particular word/character limit to the title
- reformat entry-title with two different styles
- Trying to get more space removed from my header
- how to put breadcrumb under Title [closed]