• Resolved steplab

    (@steplab)


    I created a new post type, so a new Pod starting by default Post, for this pod I added some custom fields.
    I need to create a search input inside a page for search only this pod,
    for example if I type a string inside search input, this string must be searched inside Title of custom pod, text of custom pod, custom_field1 of pod, custom_field2 of pod, …

    How can it be done?
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Pods post types and custom fields are fully supported by WP search and WP Query search methods. If you want to limit it to only this particular post type, you’d need to do that with PHP, either with WP Query Meta Key Syntax or with our Pods API (https://pods.io/docs/code/find/) though combining search across multiple custom fields, title and content, etc. is usually better handled with a search plugin like Relevanssi

Viewing 1 replies (of 1 total)
  • The topic ‘Search a string inside title text and custom fields inside custom post type’ is closed to new replies.