Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Custom WP Template pages

  1. #11
    Thread Starter
    Member arturocivit's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    66
    Thanks
    8
    Thanked 0 Times in 0 Posts
    And sorry, but is not working, I already tried everything you mentioned and a few other things and is not working, even copied and pasted what's in the page.php document and is not working, this is the code of the page.php file

    Code:
    				<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
                            	<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                                <div class="separator"></div>
                            	<?php the_content(); ?>
                            <?php endwhile ?>	
    			
                                <div id="posts_navigation">
    								<?php posts_nav_link(' ', 'Previous page', 'Next page'); ?>
                               </div>
                
                            <?php else : ?>
                        
                                <h2 class="center">Not Found</h2>
                                <p class="center">Sorry, but you are looking for something that isn't here.</p>
                                <?php include (TEMPLATEPATH . '/searchform.php'); ?>	
                        
                            <?php endif; ?>
    I can't understand why is not working, its really frustrating... anyway, thanks for your time and help!!!

  2. #12
    Veteran bluecafe's Avatar
    Join Date
    Apr 2010
    Location
    Berlin
    Posts
    1,563
    Thanks
    58
    Thanked 359 Times in 273 Posts
    this is an uncomplete page.php (this is the loop only). It is very difficult to understand your problem if you are posting pieces of code only. Your first post shows your page template without a loop and your recent post shows a loop without the rest of the page. I have no idea what you are doing

    Why don't you just start by creating a normal page (without any page template) and choose it as frontpage? Why do you need a page template?

  3. #13
    Thread Starter
    Member arturocivit's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    66
    Thanks
    8
    Thanked 0 Times in 0 Posts
    because of the structure, I need in the home page a different structure, visually, than the rest of the pages, here's the complete page.php document. But as you can see is not that much different than mine.

    Thanks so much bluecafe!

    A.-

    Code:
    <?php get_header(); ?>
                
            <div id="block_content">
                
                	<div id="content_area" class="block">
                        <div class="block_inside">
                         
    						<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
                            	<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                                <div class="separator"></div>
                            	<?php the_content(); ?>
                            <?php endwhile ?>	
    			
                                <div id="posts_navigation">
    								<?php posts_nav_link(' ', 'Previous page', 'Next page'); ?>
                               </div>
                
                            <?php else : ?>
                        
                                <h2 class="center">Not Found</h2>
                                <p class="center">Sorry, but you are looking for something that isn't here.</p>
                                <?php include (TEMPLATEPATH . '/searchform.php'); ?>	
                        
                            <?php endif; ?>
                            
                        </div>
                     </div>
                    <?php get_sidebar(); ?>
                     
                     <!-- a Clearing DIV to clear the DIV's because overflow:auto doesn't work here -->
                     <div style="clear:both"></div>
                       
                	</div>
                
               	</div>
                
            </div>
    
        <?php get_footer(); ?>

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code for custom field in edit resume template
    By bluesalman in forum JobRoller General Discussion
    Replies: 8
    Last Post: November 29th, 2011, 08:46 PM
  2. Child theme template pages?
    By tyles2 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 4th, 2011, 05:04 PM
  3. Template turns white even after deleting and reactiving the theme template
    By postgrabber in forum ClassiPress General Discussion
    Replies: 6
    Last Post: August 28th, 2011, 09:20 AM
  4. Can WP short code be used in theme template pages?
    By dollarpermile.com in forum Help Using ClassiPress
    Replies: 5
    Last Post: June 1st, 2010, 01:58 AM