Where is my home page? (5 posts)

  1. maybedog
    Posted 5 years ago #

    I'm a total newbie so forgive me for the dumb question. Someone else set up our site for us. I am trying to find where our main page content is stored. It is *not* one of our posts. It's static content. The footer says it hasn't been updated since last August. But when I go into Settings>Readings, "front page displays latest posts" is checked which makes no sense.

    Here is our site:

    I looked at the template for the index page and it has the code for the images but there isn't any text.



  2. doc4
    Posted 5 years ago #


    WordPress uses php so the text is more than likely within a page or post. You mention that it isn't in on e of the posts, you might try looking through the pages.

  3. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Log into the dashboard, on the left side go to appearance editor. All the files will be listed on the left. Open footer.php - that is where the date is.

  4. doc4
    Posted 5 years ago #


    Must have blanked on this one, kmessinger has the right idea. Let us know if you're still have trouble with this.

  5. maybedog
    Posted 5 years ago #

    Sorry, I only work on the site once in a while (I'm a contractor). It's not in one of the pages, either. I know where the footer is but I can't figure out where the main body content is coming from. Rather, I can find the index.php page which is pulling in the dynamic photos but I can't find the text. So below is the text of the index page. I'm sure the PHP is referencing some includes that have the text but I can't find them in the same directory. It must be interacting with WordPress to pull them in.

    <?php get_header(); ?>
        <div id="content">
        	<div id="left">
            	<?php include('sidebar-page.php'); ?>
            <div id="right">
            	<?php $oImg = array("pic-home-1.jpg","pic-home-2.jpg","pic-home-3.jpg","pic-home-5.jpg","pic-home-6.jpg","pic-home-7.jpg","pic-home-8.jpg","pic-home-9.jpg","pic-home-10.jpg","pic-home-11.jpg","pic-home-12.jpg","pic-home-13.jpg","pic-home-14.jpg","pic-home-15.jpg","pic-home-16.jpg");
    	$num = count($oImg);
    	$ran = rand(1,$num)-1; ?>
            	<img id="hmRotator" src="<?php bloginfo('template_url');?>/images/<?php echo $oImg[$ran]; ?>" alt="Test" /><br />
                <?php if(is_home()) { query_posts("cat=1&showposts=1"); } ?>
            	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    	<h1><?php the_title(); ?></h1>
    	<div class="entry">
    	<?php the_content('Read the rest of this entry &raquo;'); ?>
    <?php endwhile; else : ?>
                <h2 class="center">Not Found</h2>
                <p class="center">Sorry, but you are looking for something that isn't here.</p>
                <?php get_search_form(); ?>
    	<?php endif; ?>
            <span class="clear"></span>
            <div id="footer">
            	<?php get_footer(); ?>


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.