eci38.fr
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Post relationship form not showing up all parents for selection
Started by: eci38.fr in: Toolset Professional Support |
3 | 7 | 6 years, 4 months ago | ||
Custom taxonomy doesn’t list private custom posts
1
2
3
Started by: eci38.fr
in: Toolset Professional Support
Problem: I would like to show the proper "Next" and "Previous" links in an archive, based on the posts that the current User has permissions to View. Solution: The latest version of Access has an improvement that corrects the behavior of the navigation links based on the User's Access permissions. |
3 | 32 | 6 years, 11 months ago | ||
Loop assistant insterts after the loop but no corresponds
Started by: eci38.fr in: Toolset Professional Support |
2 | 6 | 7 years ago | ||
How to force a Taxonomy in a form and not let the user chose
Started by: eci38.fr
in: Toolset Professional Support
Problem: When submitting a CRED form to create a new post, I would like to automatically assign a specific taxonomy term without allowing the user to select or unselect it. I would like to assign different taxonomy terms to the post depending on the page where the CRED form is found. Solution: Use the CRED API to manually set terms to your post depending on the post ID where the form is placed. // automatically assign a slug to all posts created by CRED add_action('cred_save_data', 'set_term_for_cred_post',10,2); function set_term_for_cred_post($post_id, $form_data) { // array of cred form IDs and corresponding term slugs $array = [ '1234' => 'term-slug-1', '5678' => 'term-slug-2' ]; $taxonomy = 'my-taxonomy-slug'; $tag = array( $array[$form_data['id']] ); wp_set_object_terms( $post_id, $tag, $taxonomy, true ); } Relevant Documentation: |
2 | 9 | 7 years, 5 months ago |