Commit d955f49d by Muhammad Usman

another small fix

parent 4ccc0070
Pipeline #338 passed with stage
in 0 seconds
......@@ -54,10 +54,10 @@ if ( ! class_exists( 'CT_TAX_META' ) ) {
public function save_category_image ( $term_id, $tt_id ) {
if( isset( $_POST['vq_course_taxonomy-image-id'] ) && '' !== $_POST['vq_course_taxonomy-image-id'] ){
$image = $_POST['vq_course_taxonomy-image-id'];
$link = $_POST['vq_course_ct_tax_redirect'];
add_term_meta( $term_id, 'vq_course_taxonomy-image-id', $image, true );
add_term_meta( $term_id, 'vq_course_ct_tax_redirect', $link, true );
}
$link = $_POST['vq_course_ct_tax_redirect'];
add_term_meta( $term_id, 'vq_course_ct_tax_redirect', $link, true );
}
/*
......
......@@ -72,7 +72,7 @@ $page = get_page_by_path('lms-courses');
<div class="col-sm-3 col-padding">
<div class="download-course-box">
<div class="course-heading" >
<h4><a href="/<?php echo get_term_meta($child, 'vq_course_ct_tax_redirect', true) ?>">Download <br>course list</a></h4>
<h4><a href="<?php echo get_term_meta($child, 'vq_course_ct_tax_redirect', true) ?>">Download <br>course list</a></h4>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment