• Resolved ChrisColston

    (@chriscolston)


    Hi I’m trying to custmoise my home.php file (set as part of a child theme – https://pastebin.com/nghyKsb8)

    I only want posts in the catgeory home to be displayed, I thought it was simply to add

    <?php if ( have_posts(<strong>cat='home'</strong>) ) : ?>
    
                            <?php /* Start the Loop */ $ink_count = 0; $ink_row_count=0 ?>
                            <?php while ( have_posts() ) : the_post();
                                     if ($ink_count == 0 ) {echo "<div class='row-".$ink_row_count." row'>";}
                            ?>

    but to no avail

    https://madlife.co.uk/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Query posts function’ is closed to new replies.