Title: Plugin doesn&#8217;t work with Learndash post types
Last modified: December 6, 2022

---

# Plugin doesn’t work with Learndash post types

 *  Resolved [szymonfortuna](https://wordpress.org/support/users/szymonfortuna/)
 * (@szymonfortuna)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/)
 * Hi,
    I love the plugin and getting ready for the premium version! I mainly needed
   it for my Learndash single edit pages. I tried to deactivate plugins on the single
   edit pages for custom post types created by learndash, so Courses, Lessons, Topics.
   Nevertheless after disabling all plugins, nothing changes in the edit screen.
   The plugin list is also empty. When I try to target those post types temporarily
   with custom link it does work.
 * It also works fine with other post types only not with the Learndash ones. I’d
   really appreciate your feedback on that.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16266161)
 * Hi [@szymonfortuna](https://wordpress.org/support/users/szymonfortuna/)
 * thank you very much!
 * I’m not able to reproduce the same problem, it works for me.
 * I would focus on a post type, for example, the post type “courses”.
    Once it’s
   solved for courses it will probably be solved for the other post types.
 * Can you please tell me the permalink settings that you have in Settings => Permalinks
   => LearnDash Permalinks => Courses?
 * I also suggest:
 * – After visiting the page Settings => Permalinks go again to Freesoul Deactivate
   Plugins => Post Types, refresh the page and save again. Try again if it works.
   –
   Go to Singles => Courses – Open the actions panel – Click on the question mark
   icon (the third icon that you see here: [https://freesoul-deactivate-plugins.com/wp-content/uploads/2021/12/fdp-action-buttons.png](https://freesoul-deactivate-plugins.com/wp-content/uploads/2021/12/fdp-action-buttons.png))
 * What does the popup say?
 * If nothing above helps, I kindly ask you to provide me with the list of your 
   plugins. Better you go to Freesoul Deactivate Plugins => Tool icon => Favorite
   Plugins => Export. With that list, I can import the free plugins on my testing
   installation with a few clicks and can try to reproduce the same problem.
 * Can you also tell me please the list of the mu-plugins?
    You can see it in Plugins
   => Installed Plugins => Must-Use
 * Have a great day!
 * Jose
 *  Plugin Author [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16266168)
 * I was forgetting. Please, let me know also if “Enable Nested URLs” is checked
   in Settings => Permalinks
 *  Thread Starter [szymonfortuna](https://wordpress.org/support/users/szymonfortuna/)
 * (@szymonfortuna)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16266227)
 * Thank you for such a quick reply.
    1. My LD course permalink is set to “courses”
   2. Nested URLs are checked.
 * Just to confirm with regards to “courses” post type:
    In the front end of the
   post type – not working. In the backend single edit for the post type – not working.
 * If I target the posts both on frontend and backend using custom links – IT WORKS
 * I have quite big site, would it be ok if I sent you a temporary access to my 
   staging site? If so then, shall I email you through your website contact form?
 *  Thread Starter [szymonfortuna](https://wordpress.org/support/users/szymonfortuna/)
 * (@szymonfortuna)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16266305)
 * Quick update,
    If you activate learndash and you go to backend SINGLES
 * You will find Courses post type and in it the edit Single Course – that didn’t
   work
    Now I noticed another List below called SETUP. Within that list you have
   also courses and edit single course. If disable plugins there it works!
 * So the plugin reads those posts twice somehow and that second version works….
 * I checked the posty types again on the front end and everything works. maybe 
   I missed something before regarding the user view.
 * It works great! Still look maybe into those options i described before, but I’m
   super excited to test the paid version! I hope you’ll be developing that!
 *  Plugin Author [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16266523)
 * Thank you for the information [@szymonfortuna](https://wordpress.org/support/users/szymonfortuna/)
 * > Now I noticed another List below called SETUP. Within that list you have also
   > courses and edit single course. If disable plugins there it works!
   > So the plugin reads those posts twice somehow and that second version works….
 * This is not what I see on my installation. Could it be you have another plugin
   that also registers the post-type courses?
 * > I checked the posty types again on the front end and everything works. maybe
   > I missed something before regarding the user view.
 * Could it be before the pages were served by the cache? I don’t think so for a
   course page, but just to be sure.
 * There is also something else. Sorry, but I’m not able to explain it in a short
   way. I hope it’s clear what I’m going to say.
 * As you probably know the URL rules are managed by WordPress with the so-called
   rewrite rules.
    Those rules can be manipulated by the plugins. For example, in
   your case, Learndash adds a rewrite rule to be able to visit a single course 
   at [https://yoursite.com/courses/course-name/](https://yoursite.com/courses/course-name/).
 * WordPress doesn’t calculate the rewrite rules every time, but once it builds 
   them it stores the rewrite rules in the database. Next time you visit a page,
   WordPress retrieves the rewrite rules from the database, or the so-called rewrite
   rules cache.
    If you deactivate a specific plugin on a specific page, and WordPress
   builds the rewrite rules right after you visit that page because the rewrite 
   rules cache is empty, the rewrite rules will miss the rules eventually added 
   by the plugin that you deactivated, and they will be stored in the database with
   some missing rules.
 * To avoid that, Freesoul Deactivate Plugins will never disable any plugin if the
   rewrite rules cache is empty and WordPress needs to calculate them. It only disables
   plugins on a certain page if the rewrite rules are taken from the database when
   you visit that page.
 * When all works as expected, the rewrite rules are stored in the database by Freesoul
   Deactivate Plugins without missing any rule before you visit any page. Every 
   time you visit a page if FDP is active, and all works as expected, WP will always
   take the rewrite rules from the cache, and FDP will always deactivate the plugins
   according to the settings, but if for any unexpected reason, FDP is not able 
   to store the rewrite rules, and visiting a page they are not taken from the cache,
   between missing some rewrite rules and renouncing to disable the plugins, FDP
   prefers to don’t disable any plugin. In the case of issues, FDP always tries 
   the less problematic situation, even if this would mean a slower page. In this
   case, a missing rewrite rule may mean the impossibility to see the page.
 * So, I don’t exclude you had a problem with the rewrite rules. When you visit 
   the page Settings => Permalinks, the rewrite rules are flushed by WordPress, 
   and FDP rebuilds and stores them in the cache. Maybe now it works because you
   visited the page Settings => Permalinks.
    You may have a plugin that clears the
   rewrite rules cache, and FDP doesn’t detect it. If this is the case, you may 
   have again the same issue.
 * If you see again no plugin disabled on the single courses, add these lines in
   wp-config.php before the comment /* That’s all, stop editing! Happy publishing.*/:
 *     ```
       define( 'WP_DEBUG',true );
       define( 'WP_DEBUG_DISPLAY',false );
       define( 'WP_DEBUG_LOG',true );
       define( 'FDP_DEBUG',true );
       define( 'FDP_DEBUG_LOG',true );
       ```
   
 * Then please, let me know what you find in wp-content/debug.log.
 * Then, remove those lines, in another case, FDP will write a lot of information
   every time someone visits the page, and the file debug.log will become dramatically
   big.
 * > It works great! Still look maybe into those options i described before, but
   > I’m super excited to test the paid version! I hope you’ll be developing that!
 * Let me know if you have again issues. I’m not sure they are completely solved
   for the reasons that I explained above.
    The paid version is already public [https://freesoul-deactivate-plugins.com/](https://freesoul-deactivate-plugins.com/)
   🙂 This means I need to make it learer in the backend 🙂
 *  Thread Starter [szymonfortuna](https://wordpress.org/support/users/szymonfortuna/)
 * (@szymonfortuna)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16269683)
 * Hi [@giuse](https://wordpress.org/support/users/giuse/)
    Sorry for my late reply!
   Thank you for you response. It’s not long but rather very informative! I appreciate
   that!
 * 1. Now that you mentioned other installation. It may be the case as I had Lifer
   LMS in the past and it could have left some bloat in the database. I’ll be cleaning
   the tables with the help of my supporting developer and afterwards I should notice
   some changes.
 * 2. After finding that “Setup” section and the corresponding learndash post edit
   pages. It all works flawlessly! Also the post types or other frontend settings
   are working great!
 * 3. Yeas I’m aware of the paid version you explained everything well. I probably
   expressed myself a bit unclearly. Meantime I already got the pro version and 
   I’ll be playing around with the settings.
 * p.s. apart from developing plugins do you offer any paid consultations or website
   audits? I have one strange issue with page/post edit pages that chokes my server
   and I was wondering if you also help others to fix or debug some WordPress bugs.
   If not of course not a problem..I thought I just ask.
 *  Plugin Author [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16269841)
 * Hi [@szymonfortuna](https://wordpress.org/support/users/szymonfortuna/)
 * thank you very much for the information and for buying the PRO version!
 * 1. Thank you, just let me know.
    2. Perfect! I don’t exclude the issue was caused
   by the empty cache of the rewrite rules, once it’s filled then it works. But 
   let me know if you notice again the issue. 3. Thank you very much! I really appreciate
   it.
 * About the other issues, maybe better if you send me a message with the contact
   form at [https://josemortellaro.com/contact/](https://josemortellaro.com/contact/)
   because the rules of the forum don’t allow us to speak about paid services.
 * Have a great day!
 * Jose

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Plugin doesn’t work with Learndash post types’ is closed to new replies.

 * ![](https://ps.w.org/freesoul-deactivate-plugins/assets/icon-256x256.png?rev=
   2847508)
 * [Freesoul Deactivate Plugins - Disable plugins on individual WordPress pages](https://wordpress.org/plugins/freesoul-deactivate-plugins/)
 * [Support Threads](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/)
 * [Active Topics](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-learndash-post-types/#post-16269841)
 * Status: resolved