get_template_part in template not working
-
( Chrome/firefox browsers only debugged for the moment )
I have developed a template which works on my development server. rentdirect.umfundi.com/about-rentdirect works as expected. I moved my theme to a new server and things have gone a little awry.
proptest.uyunigroup.com/about-rentdirect does not display the content of the about-rentdirect page.I have traced this to a call to get_template_part in the page template.
while (have_posts()) {
the_post();
get_template_part(‘content’, ‘page’);
}everything up to the get_template_part call happens as expected then nothing.
1 – My theme contains a file …./libraries/legacy.php with a copy of the get_template_part function defined in it. This version is not being used by WP. The function is served by the original definition in the WP general-template.php file.
2 – regardless of the above WP does not display the post content.
I have been through the codex and forums and discovered a few tanatlizing leads with respect to scope of variables ( why is it different on this server as opposed to the original development one? )
i suspect that WP is not fully reading my template files ( but i could be wrong )Any pointers as to where to go next would be greatly appreciated since I can’t stomach too much more coffee and i gave up smoking a long while ago!.
- The topic ‘get_template_part in template not working’ is closed to new replies.