Jeffrey
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 |
---|---|---|---|---|---|
How to translate the Filter and Loop Output Integration Editor with WPML?
Started by: Jeffrey
in: Toolset Professional Support
Problem: I would like to translate some text in the Filter and Loop Output Integration editor. Solution: Wrap the text in a wpml string shortcode, and translate the text using WPML String Translation: [wpml-string context='your-context-name' name='Add a demand']Add a demand[/wpml-string] Relevant Documentation: https://wpml.org/documentation/getting-started-guide/string-translation/ |
2 | 3 | 7 years, 2 months ago | ||
How to make Cred post and user form translatable with WPML
Started by: Jeffrey in: Toolset Professional Support |
2 | 5 | 7 years, 2 months ago | ||
how to make extra width single image be responsive using post slider module
Started by: Jeffrey in: Toolset Professional Support |
2 | 4 | 7 years, 2 months ago | ||
styling built-in login form
Started by: Jeffrey in: Toolset Professional Support |
2 | 7 | 7 years, 2 months ago | ||
styling hearder
Started by: Jeffrey
in: Toolset Professional Support
Problem: Solution: For mobile device, you can add CSS class name "col-xs-**" to each layout cell, see Bootstrap document: |
2 | 10 | 7 years, 2 months ago | ||
Toolset with bbpress
Started by: Jeffrey in: Toolset Professional Support |
3 | 8 | 7 years, 2 months ago | ||
Filter children by grandparent
1
2
Started by: Jeffrey
in: Toolset Professional Support
Problem: I have a 3-level custom post type relationship hierarchy - grandparent > parent > child. On my single grandparent post page, I would like to display a View of child posts, with a custom search filtered by parent. By default, all the children of the current grandparent should be displayed, and the user should be able to select a parent as a filter. Solution: There are two options: use a URL parameter and a post relationship filter, or use two nested Views. URL parameter approach: Create a View that shows child posts, filtered by Post Relationship (grandparent > parent). Set the filter query to respond to a URL parameter. Apply this URL parameter to all links to the grandparent single post page: Nested View approach: Create a View that shows child posts, filtered by post relationship, where the parent is the current post in the Loop. In the Loop Output, add the information you want to display about each child post. Then, create a View that shows parent posts, where all parents are children of the current grandparent post. Insert the child View into the Loop Output of the parent View. Relevant Documentation: https://toolset.com/documentation/user-guides/creating-post-type-relationships/ |
2 | 17 | 7 years, 2 months ago | ||
Checking if Cred form has been submitted
Started by: Jeffrey
in: Toolset Professional Support
Problem: Solution: Here is a Post with possible approaches or workarounds: |
2 | 4 | 7 years, 3 months ago | ||
get views results and check if has results
Started by: Jeffrey
in: Toolset Professional Support
Problem: Solution: render_view() This allows you to display a View with PHP. To check if a View returns any results at all, you can use the function get_view_query_results() An example: array(0) { } Hence you can check: if (empty (get_view_query_results(12))) { echo "view has no results"; //or anything else, as example a Custom Text } and if (!empty (get_view_query_results(12))) { echo "view has results"; //or anything else, as example View results } To return the exact amount of posts a view returns: $filtered_posts = get_view_query_results( 12 ); $amount = count($filtered_posts); var_dump($amount); Then you can do things like: if ($amount < 5) { echo "less than five"; } if ($amount == 4) { echo "4"; } These are Code samples and need to be adapted. They do not extend Toolset functionality, but allow you to extract data, and check it, with Custom Code. Relevant Documentation: |
2 | 3 | 7 years, 3 months ago | ||
Need recomandation of taxonomies
Started by: Jeffrey in: Toolset Professional Support |
2 | 3 | 7 years, 3 months ago | ||
Checking if a form has been submitted
Started by: Jeffrey in: Toolset Professional Support |
2 | 10 | 7 years, 3 months ago | ||
Display a default image when user feature image is empty
Started by: Jeffrey
in: Toolset Professional Support
Problem: I would like to display an avatar image from a custom field, if that field has been set for the current post. If not, I would like to display a default image instead. Solution: Use conditional statements that check the value of the avatar custom field. If the field is empty, show an image from your Media Library by using the Add Media button. If the field is not empty, show the custom field image using the Fields and Views button. Example: [wpv-conditional if="( $(wpcf-avatar) ne '' )"] [types field='avatar' alt='%%ALT%%' title='%%TITLE%%' size='full' align='none'][/types] [/wpv-conditional] [wpv-conditional if="( $(wpcf-avatar) eq '' )"] <img src="http://yoursite.com/wp-content/uploads/2017/08/765-default-avatar-150x150.png" width="150" height="150" class="size-thumbnail" /> [/wpv-conditional] Relevant Documentation: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/ |
2 | 3 | 7 years, 3 months ago | ||
Checking cred submissions and Conditional outputting post status
Started by: Jeffrey in: Toolset Professional Support |
2 | 4 | 7 years, 3 months ago | ||
Cred submission conflict with google map
Started by: Jeffrey in: Toolset Professional Support |
3 | 6 | 7 years, 3 months ago | ||
CRED Address Field not displaying.
Started by: Jeffrey
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 4 | 7 years, 3 months ago |