githuber-md icon indicating copy to clipboard operation
githuber-md copied to clipboard

When using LearnDash, posts of type "Question" can not be enabled to use markdown

Open jmound opened this issue 4 years ago • 1 comments

First off, thank you very much for the excellent plugin!

Describe the bug

When using LearnDash (https://www.learndash.com/), there are a few custom post types created. In Githuber-md's settings, Markdown > Writing > Enable, almost all of the custom post types are listed. "Question" is not. It would help if that was possible.

To reproduce

Steps to reproduce the behavior:

  1. Install Learndash and githuber-md
  2. Click on .../wp-admin/options-general.php?page=githuber-md (settings for githuber-md)
  3. The list of post types does not include "Question"

Expected behavior

It's expected to be able to use markdown for all post types, including "Question"

Server environment

  • WordPress version [ 5.4.2 ]
  • WP Githuber MD plugin version [ e.g. 1.15.0 ]

jmound avatar Jul 31 '20 17:07 jmound

It's related to the conditional here: https://github.com/terrylinooo/githuber-md/blob/40a2885250ff57e6555eeaf304b43b3c700809cc/src/Controllers/Setting.php#L151

From what I can tell, Questions are not public. I'm not sure of what a better conditional here is.

jmound avatar Jul 31 '20 17:07 jmound

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.

github-actions[bot] avatar Jun 23 '23 00:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 25 '23 00:06 github-actions[bot]