RVA-ALT-Lab / altlab-timeline

creates custom post type for timelines that are fed by posts of the categories defined by the custom post type category matches
2 stars 2 forks source link

Support for shortcodes #2

Open ruffsl opened 5 years ago

ruffsl commented 5 years ago

Would it be possible to insert published timelines into other posts via short codes? I'd like to add additional content above/below a timeline, as well as insert timelines into custom layouts; e.g. full-width-stretched rows in SiteOrigin's page builder so the timeline can span across the entire viewport, or more finely inserted in other layouts. My current fork just hacks on timeline.css, but it doesn't play well with other layouts. I don't know how to re-use or compose this into other pages/posts.

Having the capability of referencing a timeline post via short code could look like this:

Introduction text of some foo...

[altlab-timeline name="foo"]
or
[altlab-timeline id="42"]

...Concluding remarks on foo.

BTW, thanks for writing this convent plugin. I'm not sure why the upstream timeline project plugin doesn't support this use case. Having a timeline derived from history of categories is so convenient.

woodwardtw commented 5 years ago

For sure. I've been meaning to get back to this one for a while. Once the start of the semester drama cools down, I'll revisit this plugin and make some significant updates.