• Resolved hwuser

    (@hwuser)


    Hello,

    I use FSE Full Site Editing WordPress theme and I have made the template for the course pages. It basically consists of header, post content and footer.

    When I choose this template in the course pages (cpt cluevo-lms-metadata), the course content does not appear for me.

    Could it be because the course content is not in the post content, but added with a hook before or after the post content?

    I have checked the gutenberg blocks and there is no course content block to add to the template…

    Do you have any solution for this?

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author eliasatcluevo

    (@eliasatcluevo)

    Hello there,

    thank you for reaching our. Have you tried to use shortcodes? On the Cluevo Learnmanagement page at the top you can see the shortcode for your learn index (usually something like [cluevo item=”1″] ). If you add this on your Post/Page (there is a block in gutenberg, specifically for shortcodes) the whole learntree should be displayed there.

    When you hover a course, chapter or module, the item id of that specific element is shown. So if you use the shortcode with one of these ids only the specific element will be displayed. (there is also a [s] symbol on each element, this directly copies the shortcode into your clipboard).

    I hope this helps and all the best,
    Elias

    Thread Starter hwuser

    (@hwuser)

    Hello,

    Wanting to use a single template for all posts, I have chosen to use a shortcode with the following code:

    	$current_item = get_post_meta(get_the_ID(),'cluevo-lms-tree-item-id',true);
    
    	return do_shortcode('[cluevo item="'.$current_item.'"]');

    Thanks,
    Sergio

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Template for FSE not show course content’ is closed to new replies.