Forums

Enabling embedded videos on main index page (2 posts)

  1. danichi
    Member
    Posted 3 years ago #

    Hello,

    I'm currently running WP locally, so at this stage I will not provide any links (sorry), and here is my problem: With some themes one can watch embedded videos on the main index page/starting page, but with some themes one can not. I of course fancy a theme in which one can not, so how do I fix this so I can?

    My index page code looks like this:

    <?php get_header(); ?>
    <div id="mid" class="fix">
    	<div id="mainCol" class="fix"><a name="main"></a>
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    		<div id="post">
            <div class="post" id="post-<?php the_ID(); ?>">
    			<div class="postMeta"><span class="date"><?php the_time('M j, Y') ?></span><span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span></div>
    			<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
                <h5><?php the_tags(); ?></h5>
    			<div id="mainEntry" class="entry">
                <div id="introIMG"><a href="<?php the_permalink() ?>" class="Tips2" title="Read More :: Click here to read the rest of this entry."><img src="<?php $key="thumbnail"; echo get_post_meta($post->ID, $key, true); ?>"/></a></div>
    			<a href="<?php the_permalink() ?>" class="Tips2" title="Read More :: Click here to read the rest of this entry."><p><?php the_content_rss('', TRUE, '', 200); ?></p></a>
    			</div>
    		</div>
            </div>
    		<?php endwhile; ?>
    		<?php else : ?>
    		<div class="post">
    			<div class="postMeta"><span class="date">No Matches</span></div>
    			<h2>No matching results</h2>
    			<div class="entry">
    			<p>You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
    			</div>
    		</div>
    		<?php endif; ?>
    
            <div id="more_reading">
    			<?php next_posts_link('<span class="navforward"></span>') ?><?php previous_posts_link('<span class="navback"></span>') ?>
    		</div>
    	</div>
    	<?php include (TEMPLATEPATH . '/second.php'); ?>
    </div>
    <?php get_footer(); ?>

    Regards,
    Danichi

  2. danichi
    Member
    Posted 3 years ago #

    Just to give more info.:

    (1) I can see only the link for the video that I have embedded on the main index page, but not the video itself. I want to be able to see it.

    (2) When I hit the link and get to the sub-page, I can see the video.
    Here is the code for the sub-page that works:

    <?php get_header(); ?>
    <div id="mid" class="fix">
    	<div id="mainCol" class="fix"><a name="main"></a>
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
    			<div id="singleEntry" class="entry">
    				<p><?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?></p>
    			</div>
    		</div>
    		<?php endwhile; else: ?>
    		<div class="post">
    			<h2>No matching results</h2>
    			<div class="entry">
    				<p>You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
    			</div>
    		</div>
    		<?php endif; ?>
    	</div>
    	<?php include (TEMPLATEPATH . '/second-page.php'); ?>
    </div>
    <?php get_footer(); ?>

    Regards,
    Danichi

Topic Closed

This topic has been closed to new replies.

About this Topic