Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter sukrub

    (@sukrub)

    Thanks for your quick response Will:

    It is difficult to remove the HTML comment tags, line breaks and tabs, since I am actively developing the PHP code and I need to see my code clearly.

    We should be able to turn off that feature through-out WP. Tolls that claim to turn them off work only with in the WP page and does not seem to work with the included PHP codes.

    I think, I found a work around. I just create a blank WP page called court-types, and I called the associated PHP file at the end of header.php (within the child theme).

    Here is the associated code. This does not introduce the unwanted <p> tags.

    $currentPage = $post->post_name;
    $_POST['currentPage'] = $currentPage; 
    
    if ( $currentPage == 'member-types' ) {
    	require ('app_admin/member_types.php');
    } elseif ( $currentPage == 'court-types' ) {
    	require ('app_admin/court_types.php');
    } else {
    
    }
Viewing 1 replies (of 1 total)