CoursePress Custom Requirement

My goal is for the standard get_the_post_thumbnail to return the course thumbnail. But CoursePress is created in such a way that it doesn’t return the post thumbnail. Can you help me fix this?

  • Konstantinos Xenos
    • Rubber Duck Debugger

    Hi fonderco !

    I’m attaching a .zip that contains a ‘mu-plugin’ that will return the images via get_the_post_thumbnail() as you requested. You can also preview the code before adding it here:

    To install this:

    1] Download the zip and extract it. Inside you will find a file named cp-add-image-thumbnail.php

    2] Go into your /wp-content/ directory and create a folder named mu-plugins if it doesn’t exist

    3] Upload the .php file into the mu-plugins directory. The final path should look like: /wp-content/mu-plugins/cp-add-image-thumbnail.php

    After that you’ll have to at least make an Update to your existing courses for the new images to appear properly.

    I hope this helps!



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.