Display start date of course with elementor/wordpress block

Home Forums Legacy Support Support queries How-to & Troubleshooting Display start date of course with elementor/wordpress block

Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #334203
    Marco
    Spectator
    Hello, 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, Marco
    #334231
    Diana
    Participant
    Here it is: http://prntscr.com/wpyvvh
    #334754
    Marco
    Spectator
    Dear 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, Marco
    #334977
    Diana
    Participant
    This reply has been marked as private.
    #335203
    Marco
    Spectator
    Dear 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, Marco
    #335227
    Diana
    Participant
    When I added Course Start date, On single course page it is visible: http://prntscr.com/xa9xao
    #335255
    Marco
    Spectator
    Dear 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. Marco
    #335521
    Diana
    Participant
    This code will work only for Single course page
    
    add_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.";
    
    }
    
    
    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.php
    #335574
    Marco
    Spectator
    This reply has been marked as private.
    #335856
    Diana
    Participant
    This reply has been marked as private.
    #336360
    Marco
    Spectator
    Dear 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, Marco
    #336919
    Diana
    Participant
    I 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 before
    #337484
    Marco
    Spectator
    Dear Diana, any news about this? Thank you, Marco
    #337654
    Diana
    Participant
    I 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
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.