• Resolved Chris Sanders

    (@csand10045)


    I need to sort a custom post type named ‘news’ posts based on a meta_key named “DatePublished”. In mysql, the query works correctly, but I can’t get the code to go through the loop and echo the posts. The code is below:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Help is greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter Chris Sanders

    (@csand10045)

    This one was too easy. I changed how things are done a little bit, but the biggest problem was the lack of spaces at the end of lines within the query…dumb mistake.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Query’ is closed to new replies.