Custom template not visible in wp dashboard

Hello, X

I have modified the fullwidth template to suit my needs but I can’t seem to locate it in my wordpress dashboard.

My code is as follows

<?php
/**
 * Template Name: Findings Template
 */
// =============================================================================
// VIEWS/RENEW/TEMPLATE-LAYOUT-FULLWIDTH-FINDINGS-CUSTOM.PHP
// -----------------------------------------------------------------------------
// Fullwidth page output for Renew.
// =============================================================================

get_header();
//global $post;
$args = array( 'post_type' => 'did_you_know', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );

?>

  <div class="x-container max width offset">
    <div class="<?php x_main_content_class(); ?>" role="main">

      <?php //while ( have_posts() ) : the_post();
      // $args = array( 'post_type' => 'findings', 'posts_per_page' => 10 );
      // $loop = new WP_Query( $args );
      while ( $loop->have_posts() ) : $loop->the_post(); ?>
      <h1> <? the_title(); ?> </h1> <?
      echo '<div class="entry-content">';
      the_content();
      echo '</div>';
      //endwhile;
      ?>
      <?php //wp_reset_postdata(); ?>

        <?php x_get_view( 'renew', 'content', 'page' ); ?>
        <?php x_get_view( 'global', '_comments-template' ); ?>
      <?php endwhile; ?>

    </div>
  </div>

<?php get_footer(); ?>

Add a screen shot of the available templates to choose from

Hi,

You need to add that file in your child theme root directory.

It should be in wp-content/themes/x-child instead of wp-content/themes/x-child/framework/views/renew

Please follow our best practices in customizing the theme

Thanks

1 Like

Thanks, Paul

That worked!

And thanks for the reference :slight_smile:

You’re most welcome.

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