• Hi there.
    Recently I managed to show posts from only one category on my Home page. The thing is, I am building a site to display one daily video, so I need it to appear on my Home page, where the user can simply click on the ‘play’ button and watch it. This post is being treated by WordPress as an archive post (it displays above the post the following: From the category archives: My Category). Somehow I think this is related with the post being on the archives and the video not displaying.
    Also, I’d like to remove this text ‘From the category archives: My Category’ from above the post.
    Thanks in advice. 😀

Viewing 4 replies - 1 through 4 (of 4 total)
  • Somehow I think this is related with the post being on the archives and the video not displaying.

    I doubt it. It is far more likely to do with the way your current theme was originally built and meant to be used. If this was the case, you’d need to start editing your theme’s index.php template file.

    Thread Starter sethsinner

    (@sethsinner)

    Thanks for the quick reply, esmi.
    So, any idea of what I should look for in the code? I have no clue, already tried to find out, without success.

    You could drop a copy of your theme’s index.php file into the WordPress pastebin and post the pastebin url here. Perhaps someone will be able to spot the problem and suggest a solution.

    Thread Starter sethsinner

    (@sethsinner)

    Forget about it, I made some more research and found the answer here.
    Simple solution, in fact. You must change “the_excerpt” to “the_content” on the code below, in archive.php:

    <div class="entry-content">
    <?php the_excerpt('Read the rest of this entry »'); ?>
    </div>

    Thanks anyway, esmi.

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

The topic ‘Video not displaying on Archives posts’ is closed to new replies.