[Plugin: Page.ly MultiEdit] Make it run for Page & Custom template post
-
Hi,
you’re 2 latest version doesn’t allow to show the tabs on Page and default posts or custom template post (ex: A new section Projects in the blog).
Change these lines :
// if default template.. assign var to page.php $post->page_template == 'default' ? $post->page_template = 'page.php' : ''; $templatefile = locate_template(array($post->page_template));
and add this code :
if ($post->page_template) { $post->page_template == 'default' ? $post->page_template = 'page.php' : ''; $templatefile = locate_template(array($post->page_template)); } else if (get_post_meta($post-$ID, 'custom_post_template', true)){ $post->is_post_template == 'default' ? $post->is_post_template = 'single.php' : ''; $templatefile = locate_template(get_post_meta( $post->ID, 'custom_post_template', true )); }
Hope it will help someone,
Laurent
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Page.ly MultiEdit] Make it run for Page & Custom template post’ is closed to new replies.