Redirect to lesson #1 after user click 'take this course'
How can I do this with the latest version of Academy?
Worked! Thanks man!
Will this still work on version 4.6.1?
Im having a hard time adding it after line 919. It just gives me a error message once I test it. Any ideas?
Im using version 2.15 and just want to redirect to lesson #1 page after they click ‘take this course’ button on course page.
I did the same thing and keep getting this error message once I test it on my website.
Warning: Missing argument 2 for ThemexCourse::getLessons(), called in /home2/dionhorton/public_html/wp-content/themes/academy/framework/classes/themex.course.php on line 922 and defined in /home2/dionhorton/public_html/wp-content/themes/academy/framework/classes/themex.course.php on line 1064
Warning: Cannot modify header information – headers already sent by (output started at /home2/dionhorton/public_html/wp-content/themes/academy/framework/classes/themex.course.php:1064) in /home2/dionhorton/public_html/wp-includes/pluggable.php on line 1174
Perfect,that worked. Thank you
Changing this codes work perfectly, but if the course has no lessons, redirects me to somewhere else. Is there any way to redirect to the course page or a specific page if the course has no lessons?
I’ve used the following code in academy/sidebar-profile.php file:
<?php ThemexCourse::refresh($ID, true); ?>
<h4 class=”nomargin”><a>ID); ?>”><?php echo get_the_title($ID); ?></a></h4>
Also, I would need to redirect to the first lesson after a course is paid. Is there any way to do that? Of course, the same here, if the course has no lessons, redirect them to a specific page or to the course page.
You must be logged in to reply to this topic.