Forums

Page not displayed, only all posts.. (5 posts)

  1. daand
    Member
    Posted 1 year ago #

    I am updating a website for a friend of mine. But somehow something has gone terribly wrong.
    I tried to adjust some code (remove the cufon font replacement) the website was a lot faster but, somehow none of my page was showing up...
    I had also a problem with the database, so I made a new database, a new wordpress 3 install, and used the theme without any adaptions.
    But it still will not work.
    Not the page, but all posts are displayed..

    http://outdoor-stevents.nl/website/?page_id=235
    This is an example page which was filled with text, but is only showing posts..
    All other themes display the pages normally...

    Do you have any clue or suggestions?
    I have made an export so I don’t need anything else, but I want this theme because my friend used it for a while..

    Hope you can help me out,

  2. daand
    Member
    Posted 1 year ago #

    Might be solved by removing some php which grabbed wrong templates somehow..

  3. daand
    Member
    Posted 1 year ago #

    Did not work:
    Installed everything on sub directory with new database prefix..

    http://outdoor-stevents.nl/website/?page_id=235
    http://outdoor-stevents.nl/website/
    The page should be displayed but it wont..

  4. daand
    Member
    Posted 1 year ago #

    Found out that somehow the page loads another template..

    http://outdoor-stevents.nl/contact

    Page.php gives:

    <?php
    
      if ( is_page(opt('services_page')) ) {
      include(TEMPLATEPATH . '/template-services.php');
    
      } elseif ( is_page(opt('blog_page')) ) {
      include(TEMPLATEPATH . '/template-blog.php');
    
      } elseif ( is_page(opt('blog2_page')) ) {
      include(TEMPLATEPATH . '/template-blog2.php');
    
      } elseif ( is_page(opt('blog1_page')) ) {
      include(TEMPLATEPATH . '/template-blog1.php');
    
      } elseif ( is_page(opt('portfolio_page')) ) {
      include(TEMPLATEPATH . '/template-portfolio.php');
    
      } elseif ( is_page(opt('contact_page')) ) {
      include(TEMPLATEPATH . '/template-contact.php');
    
      } else {
    
      get_header(); { ?>
    
    <?php } ?>

    And instead of displaying the page it displays template-blog.php

    So a figured out the problem pretty specific i think, but i dont know why, or how to solve it..

  5. daand
    Member
    Posted 1 year ago #

    Anyone got idea's?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.