Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Johan van der Wijk

    (@vanderwijk)

    Hi Shay, I’m sorry but I don’t quite understand your question. Could you maybe give an example of what you are trying to achieve exactly?

    Plugin Author Johan van der Wijk

    (@vanderwijk)

    No response for two weeks; closing this issue.

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allowing posts-per-page on shortcode?’ is closed to new replies.