• inklestinkle

    (@inklestinkle)


    I’m setting up a site now that uses wordpress kind of like an online magazine. I need to set up different pages that use the same themes as wordpress, but instead of using the ‘pages’ functions in WordPress, I need to make easily linkable pages that end in .php that still have working wordpress functions in them.

    For example: We need a links page. I want the page to be links.php and not index?=links or ?page_id=2. I want that page to have the same theme and some functions as wordpress, like search. Another page will be articles.php and I need the category list and the list last 10 posts functions to work in that one.

    Is this possible? And if so, how can I do it?

Viewing 1 replies (of 1 total)
  • davidhosier

    (@davidhosier)

    At the top of each php page, make a call to the WordPress blog header:
    <?php require($_SERVER[‘DOCUMENT_ROOT’].’/your-wordpress-directory/wp-blog-header.php’); ?>

    Now you can use WordPress functions like get_header(), get_footer(), etc.

    I searched for this a while ago and found several things in the WordPress support pages: 1, 2, 3, 4, https://ddhr.org/2005/11/29/wordpress-functions/

Viewing 1 replies (of 1 total)
  • The topic ‘pages ending in .php wordpress’ is closed to new replies.