matthewL-7
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 |
---|---|---|---|---|---|
Custom Code – fire only on CPT
Started by: matthewL-7
in: Toolset Professional Support
Problem: Is there an easy way to have Toolset only fire a piece of custom code added as a custom code snippet in Toolset only on a specific CPT? Solution: You can use custom PHP codes to check if current post is specific CPT, then run your custom codes, for example: https://toolset.com/forums/topic/custom-code-fire-only-on-cpt/#post-1220640 Relevant Documentation: https://developer.wordpress.org/reference/functions/get_post_type/ |
2 | 3 | 5 years, 9 months ago | ||
Easy way to automatically submit CRED form?
Started by: matthewL-7 in: Toolset Professional Support |
2 | 2 | 5 years, 9 months ago | ||
"Design with Toolset menu in the frontend" not working
Started by: matthewL-7 in: Toolset Professional Support |
3 | 13 | 5 years, 9 months ago | ||
Is it possible to set the custom field data to be queries in the view
Started by: matthewL-7 in: Toolset Professional Support |
2 | 9 | 5 years, 9 months ago | ||
Conditional formatting for a field that has an ID passed in it
Started by: 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 | 5 years, 9 months ago | ||
Custom fields not loading in WP admin
Started by: matthewL-7 in: Toolset Professional Support |
2 | 3 | 5 years, 9 months ago | ||
Infinite scroll not working correctly
Started by: matthewL-7 in: Toolset Professional Support |
3 | 13 | 5 years, 10 months ago | ||
Query strings being added to archive page URLs
1
2
Started by: matthewL-7 in: Toolset Professional Support |
3 | 25 | 5 years, 10 months ago | ||
Hide widget box when view has no content
Started by: 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 | 5 years, 10 months ago | ||
Toolset author page template issue
1
2
Started by: matthewL-7 in: Toolset Professional Support |
2 | 21 | 5 years, 10 months ago | ||
Don’t show child categories in view
Started by: 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 | 5 years, 10 months ago | ||
How to display custom field group on specific page in admin
1
2
Started by: matthewL-7
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution, in this case, with the following reply: Relevant Documentation: |
5 | 21 | 5 years, 10 months ago | ||
Are you sure you want to submit?
Started by: 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 | 5 years, 10 months ago | ||
Showing relative date and time
Started by: matthewL-7 in: Toolset Professional Support |
2 | 4 | 5 years, 11 months ago | ||
Showing elements based on visitor role
Started by: 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 | 5 years, 11 months ago |