Griffin
Support threads created in the last 30 days: 1
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Null values don’t show in View sorted by custom field
Started by: Griffin
in: Toolset Professional Support
Problem: I have a View that shows posts and custom field values from those posts. The View is sorted by the custom field. If one of the results in the View does not contain a value for that custom field, it is not included in the search results. Solution: This is the result of a quirk in WordPress queries. When sorting by a custom field, posts that do not contain a value for that custom field are not included in the search results. There are two workarounds: 1. Give every post a death date value. Choose the same date like January 1, 1700, for each post that does not have a death date. Use conditional HTML to hide January 1, 1700 on the front-end of the site and display something different like "Unknown". You can accomplish this with no extra custom code. 2. Or, create another custom field that holds a number. Copy the timestamp from the death date custom field into the number field when a post is saved or edited. You need custom code for this. Use the save_post hook, or cred_save_data if these posts are only added and edited by CRED. If no value is provided for the death date in a post, store a "1" in the new custom field. Sort by this number custom field, but display the death date field. |
2 | 5 | 6 years, 7 months ago | ||
Using an archive layout in an archive-CPT.php loop
Started by: Griffin in: Toolset Professional Support |
2 | 8 | 6 years, 12 months ago | ||
Using content layout with custom archive
Started by: Griffin
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | 6 years, 12 months ago | ||
Where does the archive url live?
Started by: Griffin in: Toolset Professional Support |
1 | 2 | 7 years ago | ||
Setting custom slug path
Started by: Griffin in: Toolset Professional Support |
3 | 5 | 7 years, 1 month ago | ||
Custom Post type no title
Started by: Griffin in: Toolset Professional Support |
2 | 4 | 7 years, 2 months ago | ||
No custom post output
Started by: Griffin in: Toolset Professional Support |
2 | 12 | 7 years, 2 months ago | ||
Do the plugins now support Foundation framework?
Started by: Griffin in: Toolset Professional Support |
2 | 5 | 7 years, 4 months ago |