matthewL-7
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 |
---|---|---|---|---|---|
"Design with Toolset menu in the frontend" not working
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
3 | 13 | hace 5 años, 11 meses | |
Is it possible to set the custom field data to be queries in the view
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
2 | 9 | hace 5 años, 11 meses | |
Conditional formatting for a field that has an ID passed in it
Iniciado por: matthewL-7
en: Toolset Professional Support
Problem: I have a custom field on User profiles. I would like to write a conditional that tests whether or not any content exists in the field for the current author archive User. Solution: function get_author_twitter_in_archive($atts) { $author_id = get_the_author_meta('ID'); return types_render_usermeta( 'twitter', array( 'user_id' => $author_id ) ); } Then in the WordPress Archive: [wpv-conditional if="( get_author_twitter_in_archive() ne '' )"] this author has twitter information available [/wpv-conditional] Relevant Documentation: |
|
2 | 9 | hace 5 años, 11 meses | |
Custom fields not loading in WP admin
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
2 | 3 | hace 5 años, 12 meses | |
Infinite scroll not working correctly
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
3 | 13 | hace 6 años | |
Query strings being added to archive page URLs
1
2
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
3 | 25 | hace 6 años | |
Hide widget box when view has no content
Iniciado por: matthewL-7
en: Toolset Professional Support
Problem: Solution: You would need to create a Child or Custom Theme and hide/show the sections according to results received from PHP calls to the Views or other data providers used. |
|
2 | 5 | hace 6 años | |
Toolset author page template issue
1
2
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
2 | 21 | hace 6 años | |
Don’t show child categories in view
Iniciado por: matthewL-7
en: Toolset Professional Support
Problem: I have a View of a hierarchical taxonomy. All the terms in the taxonomy are displayed in the View, but I want to show only the top-level terms. No child terms should be shown. Solution: Use a term parent Query Filter set to parent term is "None". This will show only top-level terms. Relevant Documentation: |
|
2 | 3 | hace 6 años | |
Are you sure you want to submit?
Iniciado por: matthewL-7
en: Toolset Professional Support
Problem: The issue here is that the user wanted to prevent their Toolset form from being submitted unless the user clicks yes to a Popup question after clicking submit. Solution: This can be done by using the JS below. jQuery(document).ready(function(){ $("input[name='form_submit_1']").click(function(event){ event.preventDefault(); if (confirm("Are you sure you want to report this offer as broken?")){ jQuery('form#cred_form_28499_1').submit(); } }); }); This will prompt the user with a question and only submit the form once the user answers yes to the question. |
|
2 | 14 | hace 6 años | |
Showing relative date and time
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
2 | 4 | hace 6 años, 1 mes | |
Showing elements based on visitor role
Iniciado por: matthewL-7
en: Toolset Professional Support
Problem: Show content based on user role. Solution: You can show particular content based on the user role by using this shortcode. This allows you to restrict or display particular content based on a user's role. |
|
2 | 3 | hace 6 años, 1 mes | |
Container not working correctly on tablet size screen
Iniciado por: matthewL-7 en: Toolset Professional Support |
|
2 | 2 | hace 6 años, 1 mes | |
Can I use conditional output with a repeatable field group
Iniciado por: matthewL-7
en: Toolset Professional Support
Problem: I have a repeatable field group that contains several fields. I would like to use a conditional to test if any of the RFG has a value in one specific field. If so, I would like to show some text in a header. If not, I would like to hide the header. Solution: One way to accomplish this in Toolset alone is with a View of the Repeatable Field Group. Add a post relationship query filter, so that the parent post is set by the current page ( or the current post in the loop if you're displaying the main post in a View ). Then add a Query Filter for the custom field (or fields), and check that the field value is not empty. Set the limit to 1 post, since all you need to know is whether or not one exists. In the wpv-items-found section of the loop, add the heading information you want to display. In the wpv-no-items-found section, delete the text message. This View is now effectively a conditional that tests if any related RFG have content in the custom field(s) in your query filter. If you need something more flexible, a custom shortcode approach is probably more practical. You can use the toolset_get_related_posts API to get all the RFGs for a specific post, then loop over them and inspect their post meta values. I can help with toolset_get_related_posts if you need more information. Basically an RFG is treated as a child of the main post. The slug of the relationship is identical to the RFG slug. Relevant Documentation: |
|
2 | 7 | hace 6 años, 2 meses | |
Conditional formatting not working how I would expect
Iniciado por: matthewL-7
en: Toolset Professional Support
Problem: I'm trying to test if the post type single name is equal to a specific string, but it's not working as expected: [wpv-conditional if="( [wpv-post-type show='single'] eq 'Post' )" debug="true"]Test[/wpv-conditional] Solution: Try wrapping the wpv-post-type shortcode in quotes, then adjusting your nested quotes like this: [wpv-conditional if="( '[wpv-post-type show="single"]' eq 'Post' )" debug="true"]Test[/wpv-conditional] Relevant Documentation: |
|
2 | 3 | hace 6 años, 2 meses |