Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Display start date of course with elementor/wordpress block
Tagged: start date
- This topic has 13 replies, 2 voices, and was last updated 3 years, 3 months ago by Diana.
Viewing 14 posts - 1 through 14 (of 14 total)
-
AuthorPosts
-
January 15, 2021 at 3:04 pm #334203MarcoSpectatorHello, in wplms 4 backend is possible to set the vibe_start_date of a course, but I can't find where I can show in frontend - with elementor or wordpress blocks. Thanks for help, MarcoJanuary 15, 2021 at 6:28 pm #334231DianaParticipantHere it is: http://prntscr.com/wpyvvhJanuary 18, 2021 at 4:16 pm #334754MarcoSpectatorDear Diana, I have seen that when I create a course I can set the start date of the course, like "March 21, 2021" but how I can display in the front end course page with Elementor? This is the list op options for the "Course Information" element: Course Title Course short description Course Full description Average Rating Average Rating Score Review Count Student Count Last updated Instructor name Course Duration Cumulative time of Units & Quiz Curriculum Item count Certificate link Badge Course Category Course Levels Course Location And I can't find course start date. Thank you, MarcoJanuary 19, 2021 at 1:26 pm #334977DianaParticipantThis reply has been marked as private.January 20, 2021 at 10:07 am #335203MarcoSpectatorDear Diana, thank you for video, I am able to set the course start date, but people can't view this date from anywhere in the course card and course layout: I would like to show the start date in these layouts: https://prnt.sc/xa2m7m https://prnt.sc/xa2njo Thank you, MarcoJanuary 20, 2021 at 11:39 am #335227DianaParticipantWhen I added Course Start date, On single course page it is visible: http://prntscr.com/xa9xaoJanuary 20, 2021 at 1:05 pm #335255MarcoSpectatorDear Diana, I see that the date is shown only if user is connected and logged-in and is visible only in the course layout, not in the course card in the listing page; if user is not logged in I can't see the start date. MarcoJanuary 21, 2021 at 12:02 pm #335521DianaParticipantThis code will work only for Single course page
Shortcode will be: [course_start_date] Use Elementor, edit course layout, use shortcode container, and add this shortcode, if any course have the course start date then it will show start date, both for logged in as well as non logged in members Add this code in wp-admin > plugins > editor > select wplms customizer plugin > wplms-customizer.phpadd_shortcode('course_start_date','vibe_course_start_date'); function vibe_course_start_date($atts, $content = null){ global $post; $course_id = $post->ID; if(!empty($course_id) && is_numeric($course_id)){ $value = get_post_meta($course_id,'vibe_start_date',true); if(!empty($value)){ return date_i18n( get_option( 'date_format' ), strtotime($value ) ); } }else echo "N.A."; }
January 21, 2021 at 2:19 pm #335574MarcoSpectatorThis reply has been marked as private.January 22, 2021 at 6:49 pm #335856DianaParticipantThis reply has been marked as private.January 25, 2021 at 4:22 pm #336360MarcoSpectatorDear Diana, thank you for help, now the code work but it doesn't make much sense to use it because it can work only in the Single course page, but in that page I can use the Course button that show the start date. I think that is important that people can see the start date and finish date of a course in the course listing page, so they can decide which course start first. I hope there will be an update soon! Thank you, MarcoJanuary 28, 2021 at 4:14 pm #336919DianaParticipantI need to check action hooks for course directory page. Please ping me here tomorrow The above code will show start date to the non logged in users as well on single course page which was an issue beforeFebruary 1, 2021 at 12:15 pm #337484MarcoSpectatorDear Diana, any news about this? Thank you, MarcoFebruary 2, 2021 at 12:08 pm #337654DianaParticipantI tried different codes to make this work. But issue is, now course directory is managed using Elementor so whatever we need to show here, we need to add that as a control in the elementor. As a alternative, you can choose this course style: http://prntscr.com/y0kcir And it will show start date in course directory: http://prntscr.com/y0kjnt -
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)
- The topic ‘Display start date of course with elementor/wordpress block’ is closed to new replies.