larryL
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Calculating post(s) age
1
2
Iniciado por: larryL
en: 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 | hace 4 años, 10 meses | ||
CRED form field relationships
Iniciado por: larryL en: Toolset Professional Support |
2 | 14 | hace 4 años, 10 meses | ||
Multiple results in one column
Iniciado por: larryL en: Toolset Professional Support |
2 | 3 | hace 4 años, 11 meses | ||
Issue with view
Iniciado por: larryL en: Toolset Professional Support |
2 | 7 | hace 4 años, 11 meses | ||
CSV Export
Iniciado por: larryL en: Toolset Professional Support |
2 | 3 | hace 4 años, 11 meses | ||
List items in view from another CPT
1
2
Iniciado por: larryL en: Toolset Professional Support |
2 | 17 | hace 4 años, 11 meses | ||
Custom Link Menu Access Control
Iniciado por: larryL en: Toolset Professional Support |
2 | 5 | hace 4 años, 11 meses | ||
Conditional field
Iniciado por: larryL en: Toolset Professional Support |
2 | 7 | hace 4 años, 11 meses | ||
Create dropdown with users
1
2
Iniciado por: larryL en: Toolset Professional Support |
3 | 32 | hace 4 años, 12 meses | ||
Add Messaging to relate to CPT
Iniciado por: larryL en: Toolset Professional Support |
2 | 3 | hace 4 años, 12 meses | ||
Count number of posts in view
Iniciado por: larryL
en: 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 | hace 4 años, 12 meses | ||
edit & delete links not showing up in Views or Content Templates
Iniciado por: larryL en: Toolset Professional Support |
2 | 7 | hace 5 años | ||
Custom Access View
Iniciado por: larryL en: Toolset Professional Support |
2 | 10 | hace 5 años, 6 meses | ||
Media Post Relationships
Iniciado por: larryL en: Toolset Professional Support |
2 | 8 | hace 5 años, 6 meses | ||
Display issue with embeded Audio
Iniciado por: larryL
en: 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 | hace 5 años, 6 meses |