Support

Account

Home Forums General Issues Display Values on my Page Reply To: Display Values on my Page

  • here is my index.php code

    <?php
    
    get_header(); ?>
    
    <div id="content">
    <div id="main">
    
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    	<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    		<?php the_content(); ?>
    	<?php endwhile; else: endif; ?>
    
    	<?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    	<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    	<p><?php the_content(); ?>
    	<?php endwhile; else: endif; ?>
    
    <!-- Slider -->
    <?php if(get_field('images')): ?>
    	<div id="slider">
    		<?php while(the_repeater_field('images')): ?>
    			<?php $image = wp_get_attachment_image_src(get_sub_field('image'), 'full'); ?>
    			<?php $thumb = wp_get_attachment_image_src(get_sub_field('image'), 'thumbnail'); ?>
    	    	<img src="<?php echo $image[0]; ?>" alt="<?php  the_sub_field('title');?>" rel="<?php echo $thumb[0]; ?>" />
    	    <?php endwhile; ?>
    	</div>
    	<?php endif; ?>
    </div>
    </div>