kmurphy
Member
Posted 8 years ago #
Can I, without being a php programmer, have the links list appear on another page outside the WordPress directory? What I think I need to do is locate the include files that hold the database connection string and other relavent includes and stick those on the php page where I want to put the <?php get_links_list(); ?> call.
Thanks
Yes :)
the include files you mention are those at the top of index.php - the 'do not remove' ones. If you include those - and make sure that the path is correct (if the page you want will be in the same directory then all should be good) - then what you suggest should work.
kmurphy
Member
Posted 8 years ago #
Thanks for the help!
Another question though... After getting the path sorted out with for the <?php
/* Don't remove this line. */
require('./wp-blog-header.php');
?>
I then started getting the following error:
Fatal error: Call to undefined function: get_recent_posts() in E:\Apache Group\Apache2\htdocs\GCCBFM\indexTest.php on line 51
I assume I have define the function in the header, and I have a book that will explain that to me, but I thought that is what the 'require' file contained... Do I have to edit the wp-blog-header.php file as well? Which if I do, I am sure that it would break every thing else... Perhaps another copy of it... or should I put the sites main index page into the WordPress blog directory and route the alias www url to that page...
It should have loaded the plugin...and I wouldn't go editing wp-blog-header at all .. the path to it could be wrong ?
bscribe
Member
Posted 8 years ago #
Just saw this the other day--Matt's templates, isn't it? He shares his exact templates for doing this AND the code -- a rewrite rule -- to make this work. This is in the new wiki, under his name (photomatt? maybe). Is that what's needed here, maybe?
Actually,
"Call to undefined function: get_recent_posts() in"
recent posts ?
Did anything before that work ?
I know a plugin should work, but was the links list got ?