Paul
Living and working in Poole, Dorset UK.
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 |
---|---|---|---|---|---|
Function to assign content template from API import
Started by: Paul
in: Toolset Professional Support
Problem: I would like to programmatically assign a Content Template to imported posts. Solution: Content Template assignment is defined by a hidden custom field "_views_template" that holds the ID of the Content Template to apply to a given post. You can use the save_post hook to apply this value automatically whenever a post is saved: function save_book_meta( $post_id, $post, $update ) { $post_type = get_post_type($post_id); // If this isn't a 'book' post, don't update it. if ( "book" != $post_type ) return; // - Update the post's metadata. update_post_meta( $post_id, '_views_template', 12345 ); } add_action( 'save_post', 'save_book_meta', 10, 3 ); Relevant Documentation: |
2 | 4 | 6 years, 5 months ago | ||
Woocommerce and Product Archive Views issue
Started by: Paul in: Toolset Professional Support |
2 | 6 | 6 years, 6 months ago | ||
Output child / sub categories only
Started by: Paul
in: Toolset Professional Support
Problem: I would like to show a View of taxonomy terms that are child terms of a specific parent term Solution: Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Reference Site installation bug
Started by: Paul
in: Toolset Professional Support
Problem: Solution: |
2 | 4 | 6 years, 8 months ago | ||
CRED Multipart forms
Started by: Paul
in: Toolset Professional Support
Problem: Solution: |
2 | 4 | 6 years, 9 months ago | ||
Woocommerce Views – Single Product template override
Started by: Paul in: Toolset Professional Support |
2 | 3 | 7 years ago |