List posts by starting letter
-
Hey there,
I want to add a page to my blog where I can select a letter (tabbed navigation, complete alphabet), and depending on which tab (letter) is selected, I want to list all posts where the title is starting with this letter (I’d also like to include this in a meta query on a custom attribute).
So far I’ve seen your meta query supports different methods like =, >= or LIKE.
Unfortunately I can’t use the LIKE attribute, cause wordpress is automatically adding placeholder % to the start and the end of the search key (i’d like it to be only “term%”).
After a bit of googling, I found this article http://wordpress.stackexchange.com/questions/159426/meta-query-with-string-starting-like-pattern.
The people over there are talking about a REGEXP comparator (added in wordpress >=3.7), it seems that I would be able to achieve what I want if I could use this.Is it possible to add this REGEXP comparator to your plugin, or do you have another idea how I could achieve this?
Any help would be much appreciated, I love your plugin.
Thanks in advance!
- The topic ‘List posts by starting letter’ is closed to new replies.