Forums › Forums › Search & Filter Pro › Search by media attachment
Tagged: search media
- This topic has 11 replies, 2 voices, and was last updated 9 years, 11 months ago by
Ross.
-
Anonymous(Private) April 4, 2016 at 9:09 pm #41579
I have added a category to media attachments and set up the search and filter however I do not know if my settings are wrong or something else is glitchy, but no results appear. The filter appears on the sidebar as I set it up however it says will not display any results.
To be more specific, I added this to my functions file:
function wptp_add_categories_to_attachments() {
register_taxonomy_for_object_type( ‘category’, ‘attachment’ );
}
add_action( ‘init’ , ‘wptp_add_categories_to_attachments’ );gave a media attachment a category name, selected “media” in general settings, selected Tag, Category & Taxonomy Archives under Detect defaults from current page and made sure to include the category ID to pull from. As I mentioned, I can get the filter to display but not the actual media attachment. Please assist.
Thank you!
Ross Moderator(Private) April 6, 2016 at 10:16 pm #41856Hi Julie
Do you have a link I could look at?
Thanks
Anonymous(Private) April 7, 2016 at 2:03 pm #41945This is the link but unfortunately I am not sure it’s going to help troubleshoot:
http://www.deluxe-designs.net/hylton/shop/
Here is a link of a page that does work the way I want/it’s supposed to, but it links to posts and not media attachments:
-
AuthorPosts