[resolved] Issue with main blog page (4 posts)

  1. gallitin
    Posted 6 years ago #

    I'm trying to come up with a better way to generate page views from my blog posts. As you can see here http://the-quota.com. 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.

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    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.

  3. gallitin
    Posted 6 years ago #

    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?

  4. esmi
    Forum Moderator
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic