Charles
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Redirecting posts to external link- Open Graph data
Iniciado por: Charles en: Toolset Professional Support |
2 | 4 | hace 6 años, 1 mes | ||
Setting open graph properties from custom fields to templates
Iniciado por: Charles en: Toolset Professional Support |
2 | 6 | hace 6 años, 1 mes | ||
View with multiple templates
Iniciado por: Charles
en: 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 | hace 6 años, 1 mes | ||
Redirect each post URL to an exernal URL from a custom field
Iniciado por: Charles
en: 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 | hace 6 años, 1 mes | ||
Issue with slides not linking to external link
1
2
Iniciado por: Charles
en: 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 | hace 6 años, 3 meses | ||
Pagination to only show single view on next page
1
2
Iniciado por: Charles en: Toolset Professional Support |
2 | 22 | hace 6 años, 10 meses | ||
Hide button linked to a type when empty
Iniciado por: Charles
en: Toolset Professional Support
Problem: Solution: You can find proposed solution in this case with the following reply: Relevant Documentation: |
2 | 3 | hace 6 años, 10 meses | ||
Possible to have multiple templates for archives?
Iniciado por: Charles
en: 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 | hace 6 años, 10 meses | ||
Types makes Categories and Tags disappear when activated
Iniciado por: Charles
en: 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 | hace 6 años, 10 meses | ||
Query Filter to display only related child posts?
Iniciado por: Charles en: Toolset Professional Support |
2 | 13 | hace 6 años, 11 meses | ||
Wrap flexslider in custom url
1
2
Iniciado por: Charles en: Toolset Professional Support |
2 | 18 | hace 6 años, 11 meses | ||
Hide Flexslider directionals/arrows when only featured image is present
Iniciado por: Charles en: Toolset Professional Support |
2 | 15 | hace 7 años | ||
Pagebuilder output different from actual when trying inserting custom types
Iniciado por: Charles en: Toolset Professional Support |
2 | 7 | hace 7 años | ||
Keep images fluid in view's grid
Iniciado por: Charles en: Toolset Professional Support |
2 | 3 | hace 7 años | ||
Trouble with Flex Slider
Iniciado por: Charles en: Toolset Professional Support |
2 | 8 | hace 7 años |