• Hello,
    I would like to show lesson content in course listing with learnpress plugin.
    Actually, on loop-section.php it show me all item of course. when we clic it open another page with detail of each lesson. I would like to show all detail for each iteam on main page.

    actually the code is :

    <?php
    					do_action( 'learn-press/before-section-loop-item', $item, $section, $course );
    
    					$item_link = $can_view_item->flag ? $item->get_permalink() : false;
    					$item_link = apply_filters( 'learn-press/section-item-permalink', $item_link, $item, $section, $course );
    					
    					?>
    
    					<a class="section-item-link" href="<?php echo $item_link ? esc_url( $item_link ) : 'javascript:void(0);'; ?>">
    
    						<?php
    						do_action( 'learn-press/before-section-loop-item-title', $item, $section, $course );
    
    						learn_press_get_template(
    							'single-course/section/' . $item->get_template(),
    							array(
    								'item'    => $item,
    								'section' => $section,
    							)
    						);
    
    						do_action( 'learn-press/after-section-loop-item-title', $item, $section, $course );
    						?>
    					</a>
    					
    
    					<?php do_action( 'learn-press/after-section-loop-item', $item, $section, $course );  ?>
    				</li><li class="subtab"> <?php echo $item_content; ?>
    			
    			
    			
    			
    			</li>
    			<?php endforeach; ?>

    I will to change ?php echo $item_content; ?> for having the good content of each lesson, actually its not running.

    Thanks 🙂

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Learnpress Hack : Lesson content en course view’ is closed to new replies.