Creating custom post template on X theme

Hi, how can I create a custom post template that adds content within the body of the post? I can’t figure out where to put the post content. I copied the wp-single post code from my X stack (integrity). When I add content before <?php x_get_view( ‘integrity’, ‘content’, get_post_format() ); ?>, it prints out at the top of the page above the featured image. When I add content below that line, it prints underneath the post div, under the tag buttons.

<?php while ( have_posts() ) : the_post(); ?>
   <?php x_get_view( 'integrity', 'content', get_post_format() ); ?>
   <?php x_get_view( 'global', '_comments-template' ); ?>
 <?php endwhile; ?>

Hi,

The file you need to modify is wp-content/themes/pro/framework/views/{STACK}/content.php
or wp-content/themes/pro/framework/views/global/_content.php

You can also use hooks to add content, plesae refer to the link below

Hope that helps

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.