add_post_meta _wp_page_template no longer sets dynamic page template
-
I see there is a new way to get the page template.
I’ve been using a fairly well discussed method to SET the page template for dynamic pages. We want these pages to be full width, so depending on the theme, the designer can set the template for these dynamic pages in their settings.
Yesterday, dynamic pages were correctly setting the page template using:
add_post_meta($posts[0]->ID, '_wp_page_template', $use_template, TRUE);
After upgrading to WP 3.4, this no longer works, and we get the default template.
Any thoughts?
Thank you
Steve
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘add_post_meta _wp_page_template no longer sets dynamic page template’ is closed to new replies.