• Resolved 777akm

    (@777akm)


    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)
  • Thread Starter 777akm

    (@777akm)

    Adding <div class="archive"> after <?php get_header(); ?> fixed 90% of the issue but posts have still wrong headings format. Something like <h2 class="entry-title"><?php the_title(); ?></h2> should fit somewhere, but it’s not working also been trying to shove just <div class="entry-title"> everywhere but that also doesn’t work, so suggestions still welcome.

    Thread Starter 777akm

    (@777akm)

    Changed .page .entry-title font size in CSS which took care of the last part also.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘query_posts on Minimatica custom page’ is closed to new replies.