jonnyfortis Posted September 29, 2014 Share Posted September 29, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/291348-duplicated-webpage-does-not-show-wordpress-blog/ Share on other sites More sharing options...
LenKaiser Posted September 30, 2014 Share Posted September 30, 2014 (edited) 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 September 30, 2014 by LenKaiser Quote Link to comment https://forums.phpfreaks.com/topic/291348-duplicated-webpage-does-not-show-wordpress-blog/#findComment-1492425 Share on other sites More sharing options...
jonnyfortis Posted September 30, 2014 Author Share Posted September 30, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/291348-duplicated-webpage-does-not-show-wordpress-blog/#findComment-1492439 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.