Support » Fixing WordPress » Issue with main blog page

  • Resolved gallitin


    I’m trying to come up with a better way to generate page views from my blog posts. As you can see here You can go to my page and watch all 15 of the videos on the main page and only generate 1 pageview. I want my main blog page to just be preview images that you click that will take you to the post to watch the movie clip ultimately generating another page view. I don’t see anyway this is possible, so I was hoping that someone had a suggestion on how to accomplish this. Let me know if you need more detail. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Don’t show the videos on the main blog page then. Consider using something like post_thumbnails and the_excerpt() to place screen shots of the videos on the main page.

    I’m not sure how to do this. Your saying when I create a new post insert the preview image to the post then link it somehow?

    Almost. Your post titles are already links to the individual pages and you can auto-generate an additional link to the single post page if that’s not enough. Something like:

    <?php if( function_exists( 'the_post_thumbnail' ) && has_post_thumbnail() ) the_post_thumbnail( 'index-post-thumbnail' );?>
    <?php the_excerpt(); ?>
    <a class="more-link" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title('', '',true);?> - continue reading</a>

    in place of <?php the_content();?> should work. But you’d also have to enable post_thumbnail support in your theme by adding:

    // add post_thumbnail support
    if ( function_exists( 'add_theme_support' ) ) {
    	add_theme_support( 'post-thumbnails' );

    to your theme’s functions.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with main blog page’ is closed to new replies.