Using Timber Routes in Plugin
-
I’ve seen that using Timber inside of a plugin is possible.
Usually these examples are just rendering twig files.I’m currently working on a plugin that is connected to an API, which contains data from many posts called publications. What I want to do is when the user visits an url such as [site-url]/publication/15 wordpress is then routed to a certain template. I do not want to create a custom post-type.
How do I use the Timber Routes inside my plugin?
Ideally, I want to make the plugin work similar to the read settings of wordpress. Where you can select a page or template for home, but here we use it for selecting a default template used for displaying the post data from the external API.
I hope this is detailed and clear enough for you to help me with my question.
The topic ‘Using Timber Routes in Plugin’ is closed to new replies.