Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Management > Forums/Blogs/Social Networks
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2008, 08:18 PM
BigAlReturns's Avatar
Moderator Extraordinaire!
 
Join Date: Dec 2007
Location: The Wirral, England
Posts: 298
Send a message via MSN to BigAlReturns
Default WP problem

I'm working on a small WP powered site for my Dad, and have a small problem. The homepage is set to be a static page, not a blog entry, although there will also be a blog on the site. When there are no blog entries written, it all works fine, but as soon as I make a post, the title of the static pages becomes the title of the first blog entry. I'm not familiar enough with wp to work out why, so some help would be great!
The site is currently at http://abdpqj.99phost.co.uk/dadsite if I'm being unclear!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:19 PM
BigAlReturns's Avatar
Moderator Extraordinaire!
 
Join Date: Dec 2007
Location: The Wirral, England
Posts: 298
Send a message via MSN to BigAlReturns
Default

Also, in case it helps, the content of the static pages remains correct - i.e. it doesn't also change to the title of the first blog post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 09:14 PM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 711
Default

Quote:
Originally Posted by BigAlReturns View Post
Also, in case it helps, the content of the static pages remains correct - i.e. it doesn't also change to the title of the first blog post!
Er, are you sure? Are you talking about where it says "Sample-Post" in big letters at the top?

That text is appearing on all of your static pages for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 09:17 PM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 711
Default

I'm not sure why your first blog post title is showing up on your pages, but the code you use to display your page title is ... <?php the_title(); ?>

If you replace whatever code is generating the title in your page.php file with that it should fix the problem I think.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 09:29 PM
BigAlReturns's Avatar
Moderator Extraordinaire!
 
Join Date: Dec 2007
Location: The Wirral, England
Posts: 298
Send a message via MSN to BigAlReturns
Default

Here is the page.php file as you requested - it just seems bizarre to me that it picks the right content but the wrong title! If it was wrong on both counts I'd at least understand a bit more!! I'm off to bed in a minute (half 3AM here!) but I'll put some more descriptive text in the pages and posts on the blog so that it's more clear whats going on. Thanks

PHP Code:
<?php get_header(); ?>

<?php get_sidebar(); ?>

<?php include (TEMPLATEPATH '/searchform.php'); ?>

<!-- Start main content -->
            <div id="content">
                <div id="intro">
                    <div class="intro_t">
                        <h1><?php the_title(); ?><span class="editsection"><?php edit_post_link('Edit Page''[ '' ]'); ?></span></h1>
                    </div>
                </div> <!-- /intro -->

                <!-- Start main Content -->
                <div id="post">
                <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
                    <div class="post" id="post-<?php the_ID(); ?>">

                    <?php the_content(); ?>
                    <?php link_pages('<p><strong>Pages:</strong> ''</p>''number'); ?>


                <!-- Trackback -->
                <?php trackback_rdf(); ?>

                </div> <!-- /post -->


                <?php endwhile; ?>

                <?php else : ?>

                <div class="post">
                    <h2><?php _e('Not Found'); ?></h2>
                    <div class="entry">
            <p class="notfound"><?php _e('Sorry, but you are looking for something that isn't here.'); ?></p>
                    </div>
                </div> <!-- /post -->

                <?php endif; ?>

                </div>





<?php get_footer(); ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 09:41 PM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 711
Default

It seems it is not the page.php file after all.

I'm stumped. I bet it's something really simple for it to mess up that badly, but I can't for the life of me pin point what that would be.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:57 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.