• Hello, I’ve found an embed link to get the latest news from a wordpress blog. On this website: http://www.planetehockey.com/manchette.php .

    How does this code works exactly?

    <script type="text/javascript" language="javascript" src="http://www.planetehockey.com/include/manchette.php?nb_news=10"></script>

    Can someone just explain me the basics content of the manchette.php include?

    It would be very helpful to understand how can I make a same thing.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    That’s a PHP file, you cannot just see how it works.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you have a query regarding WordPress? The website you have linked is not using WordPress.

    Thread Starter Ceyar

    (@ceyar)

    Yes it is not wordpress site, but i was thinking about creating something similar for wordpress post.

    I was thinking about creating a php page whit a wordpress call like this:

    <?php
    define('WP_USE_THEMES', false);
    require('./wp-blog-header.php');
    ?>

    And than just get my query. What do you think about this?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How does embed script work exactly / WordPress post on external website?’ is closed to new replies.