• Resolved Arya

    (@aryaink)


    Ok, so on my website the Default page template isn’t working for some reason. When I click a page link it shows up the content of homepage but with the header info of that particular page. The custom page template is working perfectly however and everything is working great on the local server as well.

    What could be wrong ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Site URL?

    Thread Starter Arya

    (@aryaink)

    can’t provide it is under NDA 🙁

    Thread Starter Arya

    (@aryaink)

    Any pointer ?

    you have not provided enough information for pointers;

    what theme are you working with?
    does the theme have a page.php template?

    is the template using any custom queries?

    Thread Starter Arya

    (@aryaink)

    Hi,

    It’s a custom theme I am working on, it does have page.php and a custom page template contact.php for contact page.

    The page.php is pretty straight forward with a simple loop :

    <?php while ( have_posts() ) : the_post(); ?>
    
      <?php the_content(); ?>
    
    <?php endwhile; ?>

    if I set the “Template” of the page to the contact page template, it works like it should, but if I keep it to Default it doesn’t, it is somehow bypassing the page.php template and displaying the content of index.php, though the entire setup is working perfectly on local server.

    Thread Starter Arya

    (@aryaink)

    alchymyth

    Now when you mentioned page.php I again checked the file, and the code was alright the problem was somehow the file name was changed to Page.php from page.php …
    Don’t know how it was working on local server.
    feeling so dumb 🙁

    This is the pointer I was looking for 😀 Thanks a lot

    you are welcome 😉

    if this is all, please mark the topic as ‘resolved’

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Default page template not working’ is closed to new replies.