bmtm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sorting query results by value of custom keyI had to close the final php tag, but after that it worked great for me.
Forum: Fixing WordPress
In reply to: Sorting query results by value of custom keyIt works! t31os, you are a genius. And a generous one at that! I can’t believe you even tagged each line for me. I can’t thank you enough!
Forum: Fixing WordPress
In reply to: Sorting query results by value of custom keyYour understanding is exactly right, t31os. I’d like posts with or without the custom value to be mixed together, sorted by whichever value is being returned (title for most, “recipe_name” for the rest). Following t31os’s model:
Apple pie (no meta-tag)
The best muffin I ever ate (recipe_name = Blueberry muffin)
Coffee cake (no meta-tag)is showing up as
Apple Pie
Coffee cake
Blueberry muffinbut I’d like it to be
Apple Pie
Blueberry muffin
Coffee cakeThanks again for your help with this!
Forum: Fixing WordPress
In reply to: Sorting query results by value of custom keyMichaelH: I’d like to include those posts, but each of those is listed by its post title not the “recipe_name” value.
ts31os_: I had a feeling that might be the only solution. I haven’t worked with arrays before (my PHP knowledge has all been gleaned from WP tinkering), so I would REALLY appreciate an example. I’m fairly proud of the code I came up with but I’m happy to scrap the whole thing for an easier approach.
Thank you both!