From 1185c7a33fd1ac0eef2d445e02698a1d2701022c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 1 Mar 2017 11:02:26 -0500 Subject: [PATCH] removing force template functions from the functions.php to fix template issues --- functions.php | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 9c3d231..bbbbf11 100644 --- a/functions.php +++ b/functions.php @@ -9,7 +9,46 @@ include_once 'lib/enqueueing.php'; include_once 'lib/images.php'; include_once 'lib/plugins.php'; - include_once 'lib/force-template-functions.php'; +// include_once 'lib/force-template-functions.php'; include_once 'lib/EventRegistration.php'; include_once 'lib/theme-support.php'; +//function templates_used() { +// add_menu_page( +// __( 'Templates Used', 'textdomain' ), +// 'templates used', +// 'manage_options', +// 'templates-used.php', +// 'list_templates_used', +// plugins_url( 'myplugin/images/icon.png' ), +// 999 +// ); +//} +//add_action( 'admin_menu', 'templates_used' ); +// +//function list_templates_used(){ +// global $post; +// +// $args = array( 'post_type' => 'page', 'posts_per_page' => -1 ); +// $template_posts = get_posts( $args ); +// +// $output = '

Templates Used


'; +// $output .= ' '; +// $output .= ' '; +// foreach ($template_posts as $post) { +// setup_postdata( $post ); +// if ( get_page_template_slug( $post->ID ) ) { +// $output .= ''; +// $output .= ''; +// $output .= ''; +// $output .= ''; +// $output .= ''; +// $output .= ''; +// } +// +// } +// $output .= ''; +// $output .= '
IDNameSlugTemplate
' . $post->ID . '' . $post->post_title . '' . $post->post_name . '' . get_page_template_slug( $post->ID ) . '
'; +// wp_reset_postdata(); +// echo $output; +//} \ No newline at end of file -- 2.17.1