WordPress.org

Ready to get started?Download WordPress

Forums

Inconsistant Readmore Behavour (1 post)

  1. web.ethical
    Member
    Posted 3 years ago #

    Hi,

    This is regarding my development blog on porangi.co.uk.

    The Van menu link works fine - I get readmore links.
    The Home page shows the full post even though they are both using the same content section. The only difference is the query I use to them.

    Vans Page using Category.php - works OK

    <?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', get_post_format() ); ?>
    
    				<?php endwhile; ?>

    Homepage using my query - no readmore

    <?php $my_query = new WP_Query('category_name=Blog&posts_per_page=3'); ?>
            <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
                <!-- Do special_cat stuff... -->
                <?php get_template_part( 'content', get_post_format() ); ?>
            <?php endwhile;?>

    What am I doing wrong? had such a good day writing the custom beach post type and just have this niggle. Grateful for any help!

    Thanks

    Chris

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.