Support » Themes and Templates » Static homepage without loops

  • So my front page html looks like this : <?php get_header(); ?>

    <?php
    $term = get_term_by(‘slug’, get_query_var(‘term’), get_query_var(‘taxonomy’));
    query_posts(array(‘post_type’ => array(‘portfolio’), ‘works’ => $term->slug, ‘posts_per_page’ => -1));
    ?>

    <?php get_template_part(‘loop-portfolio’); // Loop template for portfolio (loop-portfolio.php) ?>
    <?php wp_reset_query(); ?>

    <?php get_footer(); ?>

    How can I change the code, so the front page would be just a simple page I have already created.

    Making changes at Settings/ Reading doesn’t help.

  • The topic ‘Static homepage without loops’ is closed to new replies.