• hi i have custom post type called videos, i have added 10 videos and displayed using dis code`<?php
    if(is_page(‘VIDEOS’))
    {
    $args = array( ‘post_type’ => ‘video’, ‘posts_per_page’ => 10 ,’post_status’=> ‘publish’);
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();
    echo ‘ <div class=”block1″>’;
    echo'<div class=”wh_image”>’;
    the_content();
    echo “</div>”;
    echo ‘<div class=”wh_discpt”>’;
    echo ‘<div class=”date”>’;
    echo “<h3>Date Posted: </h3>”;
    echo “<h2>”.date(‘l F d,Y’,get_post_meta($post->ID, ‘wpcf-date’, ‘true’));echo “</h2>”;
    echo ‘</div>’;

    get_post_meta($post->ID,’wpcf-video’,’true’);
    echo “
    “;

    echo get_post_meta($post->ID,’wpcf-description’,’true’);
    echo ‘</div>’;
    echo ‘</div>’;
    endwhile;}
    ?>’. so the problem is, how can i display particular video when i click on read more button. that means when i click on particular video it should show on another page

    http://wordpress.org/plugins/types/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I don’t have sure if understand your question. Want you to add a _blank argument in the read more link?

    Where is the read more link in your code ?
    use the_excerpt instead of the_content and to show thumbnail of video use the thumbnail instead of putting thumbs in content area.

    Hi 5um17,

    Use the function below to diplay the read more link:

    function new_excerpt_more( $more ) {
    	return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">Read More</a>';
    }
    add_filter( 'excerpt_more', 'new_excerpt_more' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘to display particular post in a page’ is closed to new replies.