wordpress blogger not showing on homepage

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

wordpress blogger not showing on homepage

Post by jonnyfortis »

I dont use wordpress very much
I have a website that was handed to me and the homepage has a wordpress blogger sitting in the main webpage. as a precaution before doing anywork on the website i have saved a copy of the webpage (named index.php) and called it index1.php. if i try to view the saved (index1.php) the blogger is missing.

is there something in the wordpress part of the site that links in with index.php and thats why its isnt showing?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: wordpress blogger not showing on homepage

Post by Celauran »

jonnyfortis wrote:the homepage has a wordpress blogger sitting in the main webpage
Sorry, it's not clear to me what this means. Can you please elaborate?
jonnyfortis wrote:as a precaution before doing anywork on the website i have saved a copy of the webpage (named index.php) and called it index1.php.
Why aren't you using version control? Seriously. Take a day or two and learn Git.
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: wordpress blogger not showing on homepage

Post by jonnyfortis »

Celauran wrote:
jonnyfortis wrote:the homepage has a wordpress blogger sitting in the main webpage
Sorry, it's not clear to me what this means. Can you please elaborate?
jonnyfortis wrote:as a precaution before doing anywork on the website i have saved a copy of the webpage (named index.php) and called it index1.php.
Why aren't you using version control? Seriously. Take a day or two and learn Git.

the main age is built on php and it has a wordpress blog

Code: Select all

                        <?
                        if ($posts)
                        {
                            ?>
                            <ul>
                                <?
                                foreach ($posts as $post)
                                {
                                    ?>
                                    <li>
                                        <a href="<?= $post->guid ?>">
                                            <?= word_limiter($post->post_title, 10) ?>
                                            <span><?= date('d-m-Y', strtotime($post->post_date)) ?></span>
                                            <strong>read more ></strong>
                                        </a>
                                    </li>
                                    <?
                                }
                                ?>
                            </ul>
                            <?
                        }
                        ?>
>>Why aren't you using version control? Seriously. Take a day or two and learn Git.
this site was prebuilt and i just need to know if i change the homepage it will keep the blog in place
Post Reply