• Resolved shauny

    (@shauny)


    Hi,

    Now that I have this all set up, which is awesome by the way, is there documentation on how to use this on the frontend? At the very least I’d like to show recently watched shows, but my ideal usage would be to have a post on my site once a week which details the episodes I’ve watched that week (my site is a lifelog).

    Thanks!
    Shaun

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    There are different ways you could go about this, depending on your needs.

    • You could use the “Event List (Traktivity)” widget that is available with the plugin to display recently watched movies and / or TV shows in a sidebar area of your site.
    • You could use the Query Loop Block to insert Trakt.tv events saved on your site into a post or page.
    • You could hardcode some of that data directly into your theme. Here is an example of an old theme of mine where I had pages dedicated to TV shows, and where I would display a movie runtime and other details on single event pages.
    • You could use custom blocks (there are a few here in the plugin directory) to display the events in a custom way.
    • You could build a shortcode that fits your needs. Here is a simple shortcode I created to give you an example, that you could add as a plugin on your site right now (you can click on the “Download zip” button on that page and then upload the zip to your site under Plugins > Add New > Upload). I added some details on how it works in the comments, but basically you’d insert it into a weekly post of yours, like so: [traktivity_weekly date="March 2, 2016" max="5"]

    In the future, I may release a new version of my plugin with custom blocks that would display movies and tv shows with details, so you wouldn’t need a custom shortcode like above, but I’m afraid I did not get around to do that just yet.

    I hope this helps.

    • This reply was modified 2 years, 8 months ago by Jeremy Herve.
Viewing 1 replies (of 1 total)
  • The topic ‘Using Trackt details on frontend’ is closed to new replies.