Reply To: Side bar not displayed site wide

Author
Reply
  • #2357

    Hi Milan, I got a response from WPMU DEV about making this post type as public. Here it is.

    “CoursePress is made up of several post types, while it looks like just one post type, all together it is actually more around 5+ combined. It’s a complex setup. So, I’m not sure if simply changing it to public will work in this case.

    I did find where you can change that though. In the /wp-content/plugins/coursepress/coursepress.php folder there are all the register post type functions.

    Starting around line 6769. With this line:

    function register_custom_posts()

    Then ending around line 7245 with this line:

    do_action( ‘coursepress_after_custom_post_types’ );

    }

    You can copy that block into your themes functions.php and change all the:

    ‘public’ => false,

    to

    ‘public’ => true,

    I tried it on my install and it seemed to be fine, but I wasn’t able to test it with that plugin since it’s a paid one.

    With all that said, I’m also going to message our developer on this just to see what sort of implications doing this would have :)”

    Would you please try this and tell me whether this solution works or not?

    I can’t do these sort of tests in my live site.

    Thanks and Have a great day!