Editorial Calendar
[resolved] Use Editorial Calendar on any other page within any other plugin (2 posts)

  1. kthakkar
    Posted 2 years ago #

    I want to show Editorial Calendar on my custom plugin's page, so how to do that?
    Now I tried to include edcal.php (plugin page) but its showing me Cannot redeclare class EdCal in due to two time declaration of that class, so now hot to display same plugin page on my page?

    I tried include( plugin_dir_path( __FILE__ ). 'edcal.php');


  2. Zack Grossbart
    Plugin Author

    Posted 2 years ago #

    Thanks for using the Editorial Calendar, but I've never tried to embed it in another page like that. The first issue you're going to run into is the class instantiation issue that you mentioned. That's tough to get around since the Editorial Calendar acts like a singleton.

    If you do work around that issue by changing the calendar code then you're going to run into a layout problem. The calendar really wants to take up almost all of the entire page.

    The bottom line here is that you'd have to do a lot of coding to make the Editorial Calendar show up in another page.

    Good luck,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Editorial Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic