Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Masonry blog url pre-sorting #298626

    Ok, its a shame :/
    Thanks anyway !

    in reply to: Display posts under each other with original layout #295900

    Hi,

    Thanks you for the quick answer. I try to display one page with several sub-sections, which I could change, without impacting the page, just using categories. That’s why I would like to be able to display portfolios/posts under each other in a unique page. Is this feasible within Enfold / using templates ? I tried to do it with posts, but I don’t mind trying it with portfolios.

    Here is what it would look like.

    ____________Page______________
    ————-section 1—————-
    portfolio post 1
    ———end of section 1 ———–
    ————-section 2—————-
    portfolio post 3
    ———end of section 2 ———–
    _______End of page_____________

    My issue is not on creating the template but on the way full width / layer slider are displayed within the theme, as it works on posts / pages / portfolios but it doesn’t on my ‘multiple posts’ template page

    Below my template for the “posts page” template.

    <?php
    global $avia_config;
    
    	 /* Template Name: Posts Page */
    	 
    	 
    	/*
    	 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    	 */
    	 get_header();
    
     	 if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title();
    	 ?>
    
    		<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    
    			<div class='container'>
    
    				<main class='template-page content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
    
                        <?php
                        /* Run the loop to output the posts.
                        * If you want to overload this in a child theme then include a file
                        * called loop-page.php and that will be used instead.
                        */
    
                        $avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
                        get_template_part( 'includes/loop', 'page' );
                        ?>
                        
                        
                        <?php
    					query_posts('cat=2');
    					while (have_posts()) : the_post();
    						the_content();
    					endwhile;
    				?>
    
    				<!--end content-->
    				</main>
    
    				<?php
    				//get the sidebar
    				$avia_config['currently_viewing'] = 'page';
    				get_sidebar();
    				?>
    			</div><!--end container-->
    		</div><!-- close default .container_wrap element -->
    <?php get_footer(); ?>
Viewing 2 posts - 1 through 2 (of 2 total)