Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)