これを回そうとしています:
href="/wp-content/themes/tray/img/celebrity_photos/photo.jpg"
の中へ:
href="/img/celebrity_photos/photo.jpg"
だから私は単にURLから削除しようとしています。 /wp-content/themes/tray/
アンカーパスごとに変数を作成するプラグインのPHPコードは次のとおりです。
$this->imageURL = '/' . $this->path . '/' . $this->filename;
だから私は言いたいです:
$this->imageURL = '/' . $this->path -/wp-content/themes/tray/ . '/' . $this->filename;
PHP substr()
?strpos()
?