Support » Plugin: Timetable and Event Schedule by MotoPress » Show only with shortcode

  • Resolved Elliot Taylor

    (@raisonon)


    Hello,

    Is it possible to display the timetable schedules only when outputted into a page with a shortcode.

    Can the automatically created endpoints for timetables be disabled?

    Thanks

    Elliot

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Elliot Taylor

    (@raisonon)

    When in class-core.php I can amend line 452 to set the public status to false

    ”’ “public” => false, ”’

    Would be lovely to have that as a setting.

    Code looks beautiful – clearly, a lot of consideration went into this. Thanks

    Plugin Author MotoPress

    (@motopress)

    Hi @raisonon,

    We are sorry for a delayed response however we are not sure we got your initial question properly. Could you clarify it more detailed providing examples or screenshots. Thanks.

    Thread Starter Elliot Taylor

    (@raisonon)

    We are trying to use this so the schedule only appears where the shortcode is used.

    Currently you are adding the custom post types / taxonomies to be public so they have their own url slugs.

    We managed to edit the plugin where these are registered. We set public var to false.

    See this screenshot of our GIT amends of class-core.php :

    https://www.dropbox.com/s/zv4pwr53tz04c0b/Screenshot%202018-09-21%2015.21.36.png?dl=0

    There are a few other areas where we set the public to false. Perhaps this could all be a setting?

    Thanks and hope that helps.

    Plugin Author MotoPress

    (@motopress)

    Hi @raisonon,
    Thank you for your explanation. We’ve released an updated version of TimeTable plugin where we have added Permalink setting to modify slugs of Columns and Events post types.
    Also we have added filters to the registration of both post types so it is possible to override its parameters using custom function.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show only with shortcode’ is closed to new replies.