Jump to content

Recommended Posts

Hi have a webpage (homepage) that has a wordpress blog linked to it. when i save the page exactly as it is for example. home.php then saves as home1.php and load the home1.php the wordpress blog is missing. i dont use wordpress normally this is a site i have been sent to amend some part in php. Is the reason for this wordpress backend is pointing to the home.php?

 

here is the code for the blog

                    <div class="blog_container">
                        <a href="/blog" class="title_link">Latest Blog Posts</a>
                        <?
                        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>
                            <?
                        }
                        ?>
                    </div>

thanks

 

Where are you saving and edited the home.php file? Are you doing it inside the Wordpress editor? If so then you might want to try downloading the home.php file and making your changes there and then uploading it. If you are getting a blank page then you are getting some sort of php error most likely. If you cannot see the page then perhaps its because elsewhere in the php template files for the theme its linking to index.php or home.php and not home1.php. I suggest if its supposed to link to home.php changing the name of the file via FTP if you cannot save it inside Wordpress.

Edited by LenKaiser

Where are you saving and edited the home.php file? Are you doing it inside the Wordpress editor? If so then you might want to try downloading the home.php file and making your changes there and then uploading it. If you are getting a blank page then you are getting some sort of php error most likely. If you cannot see the page then perhaps its because elsewhere in the php template files for the theme its linking to index.php or home.php and not home1.php. I suggest if its supposed to link to home.php changing the name of the file via FTP if you cannot save it inside Wordpress.

let me explain a little further. when i load the home1.php all the page shows up except the wordpress blog, that is not being included. i am not using wordpress as an editor. this was something built by someone else. to me it looks like there must be something in wordpress that is saying use home.php

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.