[Resolved] WP_Query with RegEx: Is it possible? Custom Fields better?
Hey, it’s me, the guy with the book site again: http://www.thelitreview.com
We use Exec-PHP extention a lot on the site, and we have a few pages that use custom
WP_Queryfunctions, many of which have had invaluable help from people in these forums, to do things like listing best rated books in a certain genre (category):
Here’s the latest thing we want to do and I have no idea if it’s possible => We want to be able to have alphabetized listings of all book reviews by either book title or author’s name, but the only way I can think to do it is by forcing regular expressions into the
WP_Query()to sift through the titles of the posts to display the relevant lists.
We’re already using custom fields to display ratings on landing pages & search results, so that’s out unless there’s an easy way to have multiple custom fields where only a select few display (right now we use
the_meta()which I believe doesn’t accept any arguments – would we be better off exploring
- The topic ‘[Resolved] WP_Query with RegEx: Is it possible? Custom Fields better?’ is closed to new replies.