larryL
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Calculating post(s) age
1
2
Commencé par : 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 | Il y a 5 années et 1 mois | ||
CRED form field relationships
Commencé par : larryL in: Toolset Professional Support |
2 | 14 | Il y a 5 années et 1 mois | ||
Multiple results in one column
Commencé par : larryL in: Toolset Professional Support |
2 | 3 | Il y a 5 années et 1 mois | ||
Issue with view
Commencé par : larryL in: Toolset Professional Support |
2 | 7 | Il y a 5 années et 1 mois | ||
CSV Export
Commencé par : larryL in: Toolset Professional Support |
2 | 3 | Il y a 5 années et 2 mois | ||
List items in view from another CPT
1
2
Commencé par : larryL in: Toolset Professional Support |
2 | 17 | Il y a 5 années et 2 mois | ||
Custom Link Menu Access Control
Commencé par : larryL in: Toolset Professional Support |
2 | 5 | Il y a 5 années et 2 mois | ||
Conditional field
Commencé par : larryL in: Toolset Professional Support |
2 | 7 | Il y a 5 années et 2 mois | ||
Create dropdown with users
1
2
Commencé par : larryL in: Toolset Professional Support |
3 | 32 | Il y a 5 années et 2 mois | ||
Add Messaging to relate to CPT
Commencé par : larryL in: Toolset Professional Support |
2 | 3 | Il y a 5 années et 2 mois | ||
Count number of posts in view
Commencé par : 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 | Il y a 5 années et 2 mois | ||
edit & delete links not showing up in Views or Content Templates
Commencé par : larryL in: Toolset Professional Support |
2 | 7 | Il y a 5 années et 2 mois | ||
Custom Access View
Commencé par : larryL in: Toolset Professional Support |
2 | 10 | Il y a 5 années et 9 mois | ||
Media Post Relationships
Commencé par : larryL in: Toolset Professional Support |
2 | 8 | Il y a 5 années et 9 mois | ||
Display issue with embeded Audio
Commencé par : 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 | Il y a 5 années et 9 mois |