• Hello,
    I used easytypes plugin to create a custom type.

    I created a custom type with some fields and the NextGEN gallery.

    I want to create a single template for this post type.

    The problem is the gallery appears before the content.

    How can I code the template to have the content (the main post text editor content) after the title and not the gallery?

    My template file has this:

    get_header(); ?>
    
    		<div id="primary" class="content-area">
    			<div id="content" class="site-content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php striker_content_nav( 'nav-above' ); ?>
            <h1 class="entry-title"><?php the_title(); ?></h1>
    				<?php get_template_part( 'content', 'single' ); ?>
    
            <p><?php echo do_shortcode(get_post_meta($post->ID, 'ecpt_rate', true)); ?></p>
    
    				<?php striker_content_nav( 'nav-below' ); ?>
    
    				<?php
    					// If comments are open or we have at least one comment, load up the comment template
    					if ( comments_open() || '0' != get_comments_number() )
    						comments_template( '', true );
    				?>
    
    			<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content .site-content -->
    		</div><!-- #primary .content-area -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    The problem is the get_template_part( 'content', 'single' ); gets all the content including my custom type fields and gallery and I could not find anywhere how to get just the body so I can arrange the fields whatever way I want.

  • The topic ‘Newbie – Single template question’ is closed to new replies.