• Evening boys and girls,

    After some time playing around, I finally managed to incorporate a single post into my non-wordpress index page.

    The trouble is, the original post had an embedded video, and the date attached to it, but it doesn’t show on the main index page.

    I’m confusing myself here!
    Here are a couple of links so you can see what i mean.

    the blog, with the original post: https://www.emptythoughts.co.uk/Journal/

    the main page without the video or date!
    https://www.emptythoughts.co.uk/index2.php

    The code i have used to include the post on the non-wordpress page is:

    <?php
    $posts = get_posts('numberposts=1');
    foreach ($posts as $post) :
    start_wp();
    ?>
    <h3><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h3>
    <?php the_excerpt() ?>
    <?php
    endforeach;
    ?>

    I hope you understand what i mean!
    Thanks for any guidance,

    Mark.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to PHP include embedded videos in non-wordpress page’ is closed to new replies.