Suzanne Wenger
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 WYSIWYG fields save Visual tab view only
Started by: Suzanne Wenger in: Toolset Professional Support |
|
3 | 9 | 2 years, 3 months ago | |
Custom Code Snippet still acting after deleted
Started by: Suzanne Wenger in: Toolset Professional Support |
2 | 3 | 4 years, 4 months ago | ||
Getting the basename of a url within a view
Started by: Suzanne Wenger in: Toolset Professional Support |
|
2 | 2 | 4 years, 9 months ago | |
Views custom field filter by current day of week – TODAY(l)
Started by: Suzanne Wenger in: Toolset Professional Support |
|
2 | 5 | 4 years, 10 months ago | |
Query results for more than one view with get_view_query_results
Started by: Suzanne Wenger in: Toolset Professional Support |
1 | 2 | 4 years, 10 months ago | ||
Is XML-RPC used by Tooset?
Started by: Suzanne Wenger in: Toolset Professional Support |
|
2 | 3 | 5 years, 3 months ago | |
Conditional statements based on view shortcode attribute or NOT empty
Started by: Suzanne Wenger
in: Toolset Professional Support
Problem: I have a View that displays different results based on a shortcode attribute. I would like to use the output of this View in a conditional. If the results are not empty, I would like to show a text header. Solution: Avoid using a View's results in a conditional. You'll run into lots of problems with extra spaces, markup, and nested attribute quotation marks, causing the conditional to fail. Instead, use the View's wpv-items-found block to your advantage and display the text here. You can pass arbitrary text into a custom shortcode attribute, and display it in the View using the wpv-attribute shortcode. View shortcodes: [wpv-view name="degree-listings" wpvposttag="academic programs, FST, major" heading="Majors"] [wpv-view name="degree-listings" wpvposttag="academic programs, FST, masters" heading="Masters"] [wpv-view name="degree-listings" wpvposttag="academic programs, FST, cas" heading="Certificates of Advanced Study"] Loop output: [wpv-layout-start] [wpv-items-found] <strong>[wpv-attribute name="heading"]</strong> <!-- wpv-loop-start --> <wpv-loop> your loop stuff goes here </wpv-loop> <!-- wpv-loop-end --> [/wpv-items-found] [wpv-no-items-found]No items found[/wpv-no-items-found] [wpv-layout-end] Relevant Documentation: |
|
2 | 3 | 5 years, 8 months ago |