Support » Plugin: Create by Mediavine » WP Query search

  • Resolved maerygr

    (@maerygr)


    Hi,

    How can I create a right wp query to search for recipe card, and what fields are available for search like: Ingredients, Description, Title, or may even custom fields ?

    For example for custom post search right now I am using something like so :

    
       'post_type'  => array('post' ,'mv_create'),
            'orderby' => 'date',
            'posts_per_page' => -1,
            's' => $tags
    

    Where tags are just words that match anything in post, how can I do this same for recipes.

    This give me no results when I try to use any word from recipe.

    I am not using any plugin that affects search, and checkbox for disable search are off.

    Where I am wrong or should I use something different?

    Thanks!

    • This topic was modified 9 months, 1 week ago by  maerygr.
Viewing 1 replies (of 1 total)
  • Plugin Author mediavine

    (@mediavine)

    Hello,

    At the moment, Create Cards aren’t available through WP_Query. Card data is stored in custom database tables, not as custom posts, so cards are not directly accessible to post queries.

    The enhanced search feature works by altering search queries to return posts that contain cards that contain the search term. As of the most recent version (1.1), this will be the post assigned via the “Canonical Post” dropdown in the card editor.

    If you wouldn’t mind, could you explain what you’re trying to accomplish with this query? We’re always looking for suggestions for features, so it’s possible that we could build something in the future to support your use case.

    Thanks!

    Ethan
    Mediavine

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