larryL
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 |
---|---|---|---|---|---|
Calculating post(s) age
1
2
Gestartet von: larryL
in: Toolset Professional Support
Problem: I would like to calculate the age of a post, in number of days, based on its publish date, and display that number for each post in a View of posts. Solution: It would require a custom shortcode to calculate the difference between today's date and the post's publish date and display that in a View, something like this: add_shortcode( 'num-days', 'wpv_num_days_shortcode'); function wpv_num_days_shortcode( $atts ) { $atts = shortcode_atts( array( 'postid' => '' ), $atts ); $timestamp = get_the_date( 'U', $atts['postid'] ); if( $timestamp != '') { $age = floor((time() - $timestamp) / ( 60*60*24 )) ; return $age; }else { return 0; } } Then in the front-end the shortcode is like this: [num-days postid="[wpv-post-id]"] |
3 | 24 | vor 4 Jahren, 11 Monaten | ||
CRED form field relationships
Gestartet von: larryL in: Toolset Professional Support |
2 | 14 | vor 4 Jahren, 11 Monaten | ||
Multiple results in one column
Gestartet von: larryL in: Toolset Professional Support |
2 | 3 | vor 4 Jahren, 12 Monaten | ||
Issue with view
Gestartet von: larryL in: Toolset Professional Support |
2 | 7 | vor 5 Jahren | ||
CSV Export
Gestartet von: larryL in: Toolset Professional Support |
2 | 3 | vor 5 Jahren | ||
List items in view from another CPT
1
2
Gestartet von: larryL in: Toolset Professional Support |
2 | 17 | vor 5 Jahren | ||
Custom Link Menu Access Control
Gestartet von: larryL in: Toolset Professional Support |
2 | 5 | vor 5 Jahren | ||
Conditional field
Gestartet von: larryL in: Toolset Professional Support |
2 | 7 | vor 5 Jahren | ||
Create dropdown with users
1
2
Gestartet von: larryL in: Toolset Professional Support |
3 | 32 | vor 5 Jahren | ||
Add Messaging to relate to CPT
Gestartet von: larryL in: Toolset Professional Support |
2 | 3 | vor 5 Jahren, 1 Monat | ||
Count number of posts in view
Gestartet von: larryL
in: Toolset Professional Support
Problem: [wpv-found-count] returns wrong result. Solution: The problem is abnormal, please check these: https://toolset.com/forums/topic/count-number-of-posts-in-view/#post-1379529 Relevant Documentation: |
2 | 5 | vor 5 Jahren, 1 Monat | ||
edit & delete links not showing up in Views or Content Templates
Gestartet von: larryL in: Toolset Professional Support |
2 | 7 | vor 5 Jahren, 1 Monat | ||
Custom Access View
Gestartet von: larryL in: Toolset Professional Support |
2 | 10 | vor 5 Jahren, 7 Monaten | ||
Media Post Relationships
Gestartet von: larryL in: Toolset Professional Support |
2 | 8 | vor 5 Jahren, 7 Monaten | ||
Display issue with embeded Audio
Gestartet von: larryL
in: Toolset Professional Support
Problem: I'm using Views to display a list of posts. The posts have an audio file saved in a custom field. I would like to include the embedded media player in my View results, but it's showing up in the wrong place. Solution: Check the HTML markup structure and confirm the player is inserted with valid structure. |
2 | 11 | vor 5 Jahren, 7 Monaten |