Charles
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 |
---|---|---|---|---|---|
Redirecting posts to external link- Open Graph data
Started by: Charles in: Toolset Professional Support |
2 | 4 | 6 years, 1 month ago | ||
Setting open graph properties from custom fields to templates
Started by: Charles in: Toolset Professional Support |
2 | 6 | 6 years, 1 month ago | ||
View with multiple templates
Started by: Charles
in: Toolset Professional Support
Problem: I have a View of custom posts. I have a custom field applied to those posts. Depending on the value of that custom field, I would like to apply a different Content Template to each item in the Loop. Solution: [wpv-conditional if="( $(type-of-post) eq '1' )"] [wpv-post-body view_template="template-1-slug"] [/wpv-conditional] [wpv-conditional if="( $(type-of-post) eq '2' )"] [wpv-post-body view_template="template-2-slug"] [/wpv-conditional] [wpv-conditional if="( $(type-of-post) eq '3' )"] [wpv-post-body view_template="template-3-slug"] [/wpv-conditional] Relevant Documentation: |
2 | 7 | 6 years, 1 month ago | ||
Redirect each post URL to an exernal URL from a custom field
Started by: Charles
in: Toolset Professional Support
Problem: I would like to redirect posts in a specific post type to a URL saved in a custom field on each post. Solution: Unfortunately Toolset isn't set up to handle redirects so this will require custom code. Here is an example: function my_cpt_template_redirect() { if( get_post_type() == 'your-cpt-slug' ) { $id = get_the_id(); $url = get_post_meta( $id, 'wpcf-' . 'your-field-slug', true ); if( $url ) { wp_redirect( $url ); die; } } } add_action( 'template_redirect', 'my_cpt_template_redirect' ); Replace your-cpt-slug with the slug of the post type where you want to apply these redirects. Replace your-field-slug with the slug of the URL field. Additional changes may be necessary based on your requirements. Relevant Documentation: |
2 | 3 | 6 years, 1 month ago | ||
Issue with slides not linking to external link
1
2
Started by: Charles
in: Toolset Professional Support
Problem: The issue here is that the user wanted to add a link to each of their individual flexslider slides. Solution: This can be done by wrapping the image in an anchor tag. <ul class="slides"> [wpv-for-each field="wpcf-flex-slider-images"] <li> <a href="[types field='amazon-url' output='raw'][/types]" target='_blank'> [types class='' field='flex-slider-images'][/types] </a> </li> [/wpv-for-each] </ul> |
2 | 24 | 6 years, 3 months ago | ||
Pagination to only show single view on next page
1
2
Started by: Charles in: Toolset Professional Support |
2 | 22 | 6 years, 10 months ago | ||
Hide button linked to a type when empty
Started by: Charles
in: Toolset Professional Support
Problem: Solution: You can find proposed solution in this case with the following reply: Relevant Documentation: |
2 | 3 | 6 years, 10 months ago | ||
Possible to have multiple templates for archives?
Started by: Charles
in: Toolset Professional Support
Problem: After clicking that link I get directed to a page that displays the archives for editors picks. I have an archive template created and set for categories, but is it possible to have a different template display for the category editors picks, while keep the template for the other categories archives? Solution: For example, use above filter hook to trigger a custom PHP function, in this function, check if current page is the editors pick's term archive page, then return another specific archive view ID. Relevant Documentation: |
3 | 15 | 6 years, 10 months ago | ||
Types makes Categories and Tags disappear when activated
Started by: Charles
in: Toolset Professional Support
Problem: Solution: [wpv-view name="main-posts-view" cached="off"] You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 12 | 6 years, 10 months ago | ||
Query Filter to display only related child posts?
Started by: Charles in: Toolset Professional Support |
2 | 13 | 6 years, 11 months ago | ||
Wrap flexslider in custom url
1
2
Started by: Charles in: Toolset Professional Support |
2 | 18 | 6 years, 11 months ago | ||
Hide Flexslider directionals/arrows when only featured image is present
Started by: Charles in: Toolset Professional Support |
2 | 15 | 6 years, 12 months ago | ||
Pagebuilder output different from actual when trying inserting custom types
Started by: Charles in: Toolset Professional Support |
2 | 7 | 6 years, 12 months ago | ||
Keep images fluid in view's grid
Started by: Charles in: Toolset Professional Support |
2 | 3 | 6 years, 12 months ago | ||
Trouble with Flex Slider
Started by: Charles in: Toolset Professional Support |
2 | 8 | 6 years, 12 months ago |