Search Pages and Permalinks
-
I have an interesting question – I haven’t seen an answer to it yet. I need to search Pages as well as posts. I found two plugins for this – both work in pretty much the same way. That latter is an old hack put into plugin form.
My problem is this: as long as my Page titles are one word, any of these solutions work just fine. However, if the Page title is more than one word, and permalinks are turned on, then it no longer functions. For example, if I have a Page titled “See this here”, then the permalink would be “see-this-here”. But the search hacks/plugins put in the character for spaces instead – “see%20this%20here”, and the search comes up incorrectly.
Is there a way to make any of these force the search hack to use the slugs instead of the %20 thing? I can’t figure this out. I thought a preg_replace might work, but I’m having a code brainfart and can’t quite figure it out.
(and BTW – yes, I’ve contacted the plugin authors – haven’t heard from them yet.)
I’d appreciate any ideas! Thanks 🙂
The topic ‘Search Pages and Permalinks’ is closed to new replies.