moving links?? (6 posts)

  1. kmurphy
    Posted 11 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.

  2. Mark (podz)
    Support Maven
    Posted 11 years ago #

    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.

  3. kmurphy
    Posted 11 years ago #

    Thanks for the help!
    Another question though... After getting the path sorted out with for the <?php
    /* Don't remove this line. */

    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...

  4. Mark (podz)
    Support Maven
    Posted 11 years ago #

    It should have loaded the plugin...and I wouldn't go editing wp-blog-header at all .. the path to it could be wrong ?

  5. bscribe
    Posted 11 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?

  6. Mark (podz)
    Support Maven
    Posted 11 years ago #

    "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 ?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.