WordPress.org

Ready to get started?Download WordPress

Forums

I would like to use php includes tag to get .... (3 posts)

  1. archer123
    Member
    Posted 3 years ago #

    I would like to use php includes tag to get a custom navigation called nav,php that is on my root.

    I have tried both of the following in the pages, edit feature.

    <?php include("nav.php"); ?>

    {require_once('nav.php');}

    did not work any suggestions are appreciated

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    You can't use PHP within a Page.post content area. It needs to be in the template file.

  3. archer123
    Member
    Posted 3 years ago #

    Thanks that makes since now that you say it

Topic Closed

This topic has been closed to new replies.

About this Topic