query_posts on Minimatica custom page
-
I’ve struggled for days now with showing on custom pages same content as on category/page. I changed the code so there’s max 5 first page slides and they link to pages + some other small modifications and everything is exactly as I want. Bottom menu takes you where I want also first pages slides to take. To accomplish that with also first 3 slides I made a custom page for them to use:
<?php get_header(); ?> <?php if( have_posts() ) : the_post(); ?> <div class="title-container"> <h1 class="page-title"><?php echo get_the_title(); ?></h1> </div><!-- .title-container --> <div id="container"> <?php query_posts('category_name='.get_the_title());?> <?php get_template_part( 'loop', 'category' ); ?> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- #container --> <?php endif; ?> <?php get_footer(); ?>
But as you may see
https://eggblog.digidragons.com/recipes/
doesn’t look like
https://eggblog.digidragons.com/category/recipes/
which I’m so desperately after. Please help me to fixt this custom page code. I’ve tried all kinds of lines there, but nothing has worked jet.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘query_posts on Minimatica custom page’ is closed to new replies.