「[]」自体を含む [...] 内の文字列を削除する必要があります。このサイトから解決策を探してみました。preg_replace で何かを試す必要があるという手がかりはありますが、私には専門的すぎるようです。
例えば :
[gallery ids="92,93,94,95,96,97,98,99,100" orderby="rand"] Description The thirty-two storey resort condominium in Phuket, located Just 150m from Patong beach where choices of activities, water sp
サンプル テキストから[gallery ids="92,93,94,95,96,97,98,99,100" orderby="rand"]を削除する必要があります。そして、常に[gallery ids="で始まります。
提案してください。