Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/theme.php on line 623

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/custom_posts/custom_posts.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 46

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 67

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 75

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 92

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiRender.php on line 70

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 181

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 538

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 695

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 1087

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112
[WordPress] 検索にタグやカテゴリも含む。 | おれせか
おれせか

なんかそれっぽいのをうにうに。

ちょっと別サイトでタイトルの通りのことをしなきゃいけなくなったので、その前にとりあえずうちのサイトを人柱に。
というわけで、『Search Everything』というプラグインを導入して試してみた。

で、オプションを色々on/offしつつもにょもにょしてたら、なんだか日本語のカテゴリ名が通るのと通らないのがあったりする。

まずはもにょもにょ

たぶんオプションの「Search every tag name」と「Search every category name」あたりが関係してるっぽいので、そのへんをon/offして実験。

両方on
タグもカテゴリもどっちも日本語ぜんぶOK。
「Search every tag name」だけon
タグは問題なし。
「Search every category name」だけon
日本語のカテゴリ名検索してみつかんないものがあります><

ぼすけてぐーぐる先生!

というわけでぐぐってみたらこゆのが出てきた↓
WordPress Search Everythingでタグを検索できない | 永田順伸のブログ

しかし、ここに書いてある内容はタグのことで、しかももう対応されてる。
でもきっと同じようにカテゴリ検索のほうの関数の中でもslugを検索してるっぽいから、何も考えずにココをnameにすりゃイイだけなんじゃね?ってことでひとまずやってみる。

うお、日本語の全部ひっかからんくなった。だめだこりゃ。

さらにもにょもにょ

なんなんじゃろーと思いつつ色々いじって、試しにカテゴリ名のほうを変更してみたところでわかった。

「カテゴリー名」を変更したカテゴリーにて「カテゴリースラッグ」を変更してなかったものが検索にひっかかってなかった。

そういうことかーっ!!!!!

というわけで対処。

もうどれがカテゴリー名変更したことあるものかわかんないので、カテゴリ全部管理画面で1こずつ開いてカテゴリースラッグ消して保存しなおしで解決しますた。

あ、もちろん途中でいじったコードはデフォの状態に戻しておきました。

#でもこれ自分でカテゴリースラッグ付け直してる人だとコードいじんなきゃダメだってことだよね。

PAGETOP
PAGETOP
PAGETOP

Comments (17)

「カテゴリー名」を変更したカテゴリーにて「カテゴリースラッグ」を変更してなかったものが検索にひっかかってなかった。

[2012/12/14 (金) 02:26]

私はこのブログは本当に私はそれを行うように確信させたことを申し上げたいと思います!おかげで、非常に良い記事。

[2012/12/20 (木) 16:42]

うお、日本語の全部ひっかからんくなった。だめだこりゃ。

[2013/01/29 (火) 15:05]

本当に素敵なウェブサイトは、あなたに感謝し、私たちは共有することを希望する!

[2013/02/05 (火) 11:42]

したがって有益すべてがここで提供されて、私は真剣にこの記事を見て興奮し、私はあなたが、私は議論のために、より多くが見て、私はそれのメモを取るための多くの感謝を言わなければならない個人的には、正しいデータを私に供給のでそれについて想像していたデータ。

[2013/06/13 (木) 17:28]

ポストかなり良い。私はちょうどあなたのブログにつまずいたと私は本当にあなたのブログの記事を読んで楽しかったと言っていた。

[2013/08/05 (月) 14:35]

導入後、携帯でチェックしてみたら「続きを読む」のリンク部分が、リンクじゃなくてまんまHTMLタグで出てるなー、と。

[2014/12/25 (木) 15:32]

ーほんわかとのブログにつまず

[2015/08/13 (木) 16:21]

trueにしたら元の画像の範囲はそのままにしておく。(こっちがcssのclipのふつーな動作だと思ってもらえれば。)

[2015/09/16 (水) 15:54]

l直書きでネスト作るこ

[2015/10/13 (火) 17:05]

このシャネル腕時計のブランドの自分、
シャネル激安http://www.cctoh.com/
93―01チップを基礎にする93―02は自動的に鎖の機械のチップに行って駆動します。
シャネル財布
シャネルピアス
シャネル眼鏡
シャネルバッグ
シャネル腕時計
シャネル靴
このチップは48時間の動力を持って貯蓄して、
シャネル激安腕時計の使用更におだやかで心地良くて、
飛行する陀はずみ車は8粒のねじの調節の後の改良システムでと腕時計、
シャネル完璧な精密で正確な度を確保しました。

[2015/11/18 (水) 00:44]

てのがマスター/サーヴァントだったりとか。

[2015/11/23 (月) 17:30]

昨日、ものすごいひさしぶりに歯医者に行きました。
どれくらいひさしぶりかって、高校卒業以来行ってないのは確かなのでおそらく約10年ぶりくらいかと。

[2016/01/06 (水) 18:16]

画面中央にこのボックスが表示されるサンプルで、ポップアップされたウィンドウ内でスクロールができるようにしたいのですが、どうしたらよいものか、と困っております。

[2016/01/07 (木) 11:09]

まぁなんかあるでしょ。

[2016/01/15 (金) 17:46]

んじゃオートセーブ切ってしまえってことで

[2016/03/31 (木) 09:44]

こっちも、とりあえずなんかうまくいったぽいからコレでいいかな行き当たりばったりLV。

[2016/06/20 (月) 10:38]
PAGETOP

Comment Form

PAGETOP

Trackbacks (1)

gia xe toyota aurion

[WordPress] 検索にタグやカテゴリも含む。 | おれせか

[2014/10/18 (土) 02:10]
PAGETOP

Trackback URL

PAGETOP

Search