matthewL-7
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
"Design with Toolset menu in the frontend" not working
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
3 | 13 | vor 5 Jahren, 11 Monaten | |
Is it possible to set the custom field data to be queries in the view
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
2 | 9 | vor 5 Jahren, 11 Monaten | |
Conditional formatting for a field that has an ID passed in it
Gestartet von: matthewL-7
in: 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 | vor 5 Jahren, 11 Monaten | |
Custom fields not loading in WP admin
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
2 | 3 | vor 5 Jahren, 12 Monaten | |
Infinite scroll not working correctly
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
3 | 13 | vor 6 Jahren | |
Query strings being added to archive page URLs
1
2
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
3 | 25 | vor 6 Jahren | |
Hide widget box when view has no content
Gestartet von: matthewL-7
in: 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 | vor 6 Jahren | |
Toolset author page template issue
1
2
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
2 | 21 | vor 6 Jahren | |
Don’t show child categories in view
Gestartet von: matthewL-7
in: 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 | vor 6 Jahren | |
Are you sure you want to submit?
Gestartet von: matthewL-7
in: 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 | vor 6 Jahren | |
Showing relative date and time
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
2 | 4 | vor 6 Jahren, 1 Monat | |
Showing elements based on visitor role
Gestartet von: matthewL-7
in: 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 | vor 6 Jahren, 1 Monat | |
Container not working correctly on tablet size screen
Gestartet von: matthewL-7 in: Toolset Professional Support |
|
2 | 2 | vor 6 Jahren, 1 Monat | |
Can I use conditional output with a repeatable field group
Gestartet von: matthewL-7
in: 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 | vor 6 Jahren, 2 Monaten | |
Conditional formatting not working how I would expect
Gestartet von: matthewL-7
in: 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 | vor 6 Jahren, 2 Monaten |