• Resolved greatmatter

    (@greatmatter)


    We’re trying to have a custom post type sort by a custom field:
    [display-posts post_type=”job-listing” posts_per_page=”-1″ layout=”tabular” meta_key=”date-posted” orderby=”meta_value”]

    When we add the “meta_key” parameter, the results disappear.

    How can we troubleshoot this?

Viewing 1 replies (of 1 total)
  • Thread Starter greatmatter

    (@greatmatter)

    The issue was that the meta_key needed a wpcf- in front. All good now.

Viewing 1 replies (of 1 total)
  • The topic ‘DisplayPosts Shortcode fails with meta_key sort’ is closed to new replies.