Forums › Forums › Search & Filter Pro › Custom Post Type not showing in results
- This topic has 6 replies, 2 voices, and was last updated 6 years, 9 months ago by
Trevor.
-
Anonymous(Private) June 21, 2019 at 4:28 pm #214631
Hi,
I’ve created a Custom Post type with CPT UI with the following settings:
name: store
label: Items
singular_label: Item
description: “”
public: true
public: true
publicly_queryable: true
show_ui: true
show_in_nav_menus: true
show_in_rest: true
rest_base: “”
rest_controller_class: “”
has_archive: false
has_archive_string: “”
exclude_from_search: false
capability_type: post
hierarchical: true
rewrite: true
rewrite_slug: “”
rewrite_withfront: true
query_var: true
query_var_slug: “”
menu_position: “”
show_in_menu: true
show_in_menu_string: “”
menu_icon: dashicons-store
custom_supports: “”I created a search form with the following settings:
Search in the following post types: Posts, Items (the custom post type)
Field relationships: AND / OR (I tried both)
Display results method: view: As an Archive
Use a custom template for results?: checked
Enter the filename of the custom template: search.php (the file exists)
No Ajax
Post Status: Published
Tags, Categories & Taxonomies: Category include 5 (It’s a post category called Calendar Events).So, basically I have a search form to search in Calendar Events (post category with ID 5) and the Items Custom post type. For the moment there are 13 posts all as published between Calendar Events category and Items Custom post type.. but I only get results from the Calendar Category and nothing from Items CPT..
It’s really strange.. the search form is working because I’m getting results from the Calendar category…
Any help would be really appreciated.
Thanks!
-
AuthorPosts