Forum Replies Created
-
AuthorPosts
-
March 28, 2015 at 3:09 pm in reply to: Display Woocommerce Categories in Select list on separate CPT #3529
byronyasgurMemberActually I think I figured this out … looks like I don’t need to set the scope for what I’m doing and setting it to taxonomy was wrong for what I was trying to do … I just left it out so it defaults to postmeta and it all works fine
piklist('field', array( 'type' => 'select' ,'field' => 'categoryreq' ,'label' => 'Categories' ,'description' => 'Terms will appear when they are added to this taxonomy.' ,'choices' => piklist( get_terms('product_cat', array( 'hide_empty' => false )) ,array( 'term_id' ,'name' ) ) ));
byronyasgurMemberHad a go … it worked perfectly, thanks. I used get_terms() to get the values out. What would you say about scalability. Every user will have a personal_tags_* entry in the term_taxonomy table I’m no database expert but I suppose there’s no issue with this?
byronyasgurMemberWow … thanks … am flattered … had a quick look … maybe try it out at weekend
byronyasgurMemberWow … that looks like it might do the trick. I’m swamped in client work right now but I can’t wait to try this. I’ll report my results here in case it’s of use to anyone in the future. Thanks
-
AuthorPosts