[Resolved] Post titles containing an ampersand turn to code when resubmitted

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 9 months, 3 weeks ago.

Assigned support staff: Luo Yang.

Author
Posts
#1341579

I am trying to: search post titles

Link to a page where the issue can be seen: hidden link

I expected to see: results containing &

Instead, I got: no results if the post has been resubmitted

#1341651

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

Thanks for the details, I have tried it in your website, but can not see the problem as you mentioned above:
no results if the post has been resubmitted

See screenshot: att.JPG

Is this problem resolved? please let me know if you need more assistance for it, thanks

#1342423

this is because i corrected the post title and put the '&' back in. but if the cpt is edited and replushed, it defaults the '&' back to code, and then it doesn't show up in the front end search.

#1342479

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Please elaborate the question with more details:
if the cpt is edited and replushed, it defaults the '&' back to code, and then it doesn't show up in the front end search.

What code does the '&' back to?

I have tried it in my localhost, with below steps:
1) Create a new post, post title is: at&t
2) Save and edit, save above post again, there isn't the problem you mentioned above.

So the problem you mentioned above is abnormal, please check these:
In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, and test again