Support » Plugin: IMDb Connector » IMDB Title from Post title

  • Resolved Neso

    (@neso)



    Hi, can you tell me how to insert POST TITLE in code bellow, in short to use POST TITLE instead: Apocalypse Now

    <?php
    $movie = imdb_connector_get_movie(“Apocalypse Now”);
    echo $movie[“title”] . ” was released in ” . $movie[“year”] . ” and is a ” . $movie[“genre”] . ” movie.”;
    ?>

    Thank you
    Neso

    https://wordpress.org/plugins/imdb-connector/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi Neso,

    Excuse my late reply, your thread must have gotten lost in my mailbox.

    I don’t really understand your issue. Would you be so kind to explain it once again in detail, possibly with an example?

    If I add above code in post page, how to automatically use that post title insted of Apocalypse Now in above code ?

    Plugin Author thaikolja

    (@thaikolja)

    You might use $movie = imdb_connector_get_movie(get_the_title()); if you’re in the loop.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘IMDB Title from Post title’ is closed to new replies.