julienL-5
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 |
---|---|---|---|---|---|
Recording number of child posts in a post custom field
Started by: julienL-5
in: Toolset Professional Support
Problem: Solution: ==> In the code given above, please make sure to replace 'child-post-type-slug' with your original child post type slug. And then in the View >> you will set Ordering >> by your Custom field. |
2 | 5 | 7 years, 1 month ago | ||
Conditional display of CRED form on post depending if a child post exists
Started by: julienL-5
in: Toolset Professional Support
Problem: My problem here is that once a user has recommended a book, I want to hide the form, since users should only be able to recommend a book once. Currently, the form will continue to be displayed on the page, which is confusing for the users. Solution: Relevant Documentation: |
2 | 6 | 7 years, 1 month ago | ||
Assigning parent posts on a CRED form based on Author as current user
Started by: julienL-5 in: Toolset Professional Support |
2 | 7 | 7 years, 2 months ago | ||
Getting parent post ID sent to user custom field upon Post CRED form submission
Started by: julienL-5
in: Toolset Professional Support
Problem: Solution: add_action('cred_save_data_160', 'jln_add_book_id',10,2); function jln_add_book_id($post_id, $form_data) { $user_id = get_current_user_id(); $parent_id = get_post_meta($post_id, '_wpcf_belongs_book_id', true); add_user_meta($user_id, 'wpcf-recommended-book-ids', $parent_id); } |
2 | 3 | 7 years, 2 months ago | ||
Content template built with Beaver Builder not used correctly
Started by: julienL-5
in: Toolset Professional Support
Problem: Solution: [types field='book-cover' alt='%%ALT%%' title='%%TITLE%%' size='medium' align='none' resize='proportional' separator=', '][/types] Screenshot: https://toolset.com/wp-content/uploads/2017/09/570264-image_size.png?x65254 |
2 | 5 | 7 years, 2 months ago | ||
Difference between Content Templates and Template Layouts for CPTs
Started by: julienL-5
in: Toolset Professional Support
Problem: Please explain the difference between Content Templates and Template Layouts. Solution: Generally, if you're using the Layouts plugin you should use a Template Layout to define a design for the main content area of your custom post type. If you're not using the Layouts plugin, you should use a Content Template. |
2 | 3 | 7 years, 2 months ago | ||
Using different Content Templates for the same CPT
Started by: julienL-5
in: Toolset Professional Support
Problem: I would like to apply different Content Templates to the same Custom Post Type depending on the current User's custom field value, or User role, or some other criteria. Solution: We offer a filter that will allow you to programmatically override the default Content Template - wpv_filter_force_template: add_filter( 'wpv_filter_force_template', 'dynamic_author_template_for_post_12345', 99, 3 ); function dynamic_author_template_for_posts( $template_selected, $id, $kind ) { if ( $id == 12345 ) { // if the user is trying to view the post with ID 12345 $template_selected = get_the_author_meta('wpcf-template-field-slug'); } return $template_selected; } Relevant Documentation: https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_template |
3 | 4 | 7 years, 2 months ago | ||
Any performance difference between Custom Fields and Taxonomies?
Started by: julienL-5
in: Toolset Professional Support
Problem: Is there a performance difference between custom fields and taxonomies? Solution: At a very large scale, taxonomy searches may be faster because the tables are indexed. Most sites aren't large enough for these differences to become very apparent. |
2 | 3 | 7 years, 2 months ago | ||
Container width makes post content overflow
Started by: julienL-5 in: Toolset Professional Support |
2 | 5 | 7 years, 2 months ago | ||
HTML conditional display based on if a custom post exists
Started by: julienL-5 in: Toolset Professional Support |
2 | 4 | 7 years, 2 months ago |