Viewing 1 replies (of 1 total)
  • Plugin Author John Kleinschmidt

    (@johnkleinschmidt)

    If you want to use a different template than the default page template, the only way that I know of to do it is to add code to your theme to use a different template for the campaign pages by hooking into the page_template filter. For example:

    add_filter( 'page_template', 'pfund_custom_page_template' );
    function pfund_custom_page_template($current_template) {
        global $post;
        if ( $post && $post->post_type == 'pfund_campaign' ) {
            return locate_template( 'campaign-template.php' );
        } else {
            return $current_template;
        }
    }
Viewing 1 replies (of 1 total)

The topic ‘Ability to change Page Template?’ is closed to new replies.