Title: Static php in Navigation
Last modified: August 21, 2016

---

# Static php in Navigation

 *  Resolved [Tinsu](https://wordpress.org/support/users/tinsu/)
 * (@tinsu)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/static-php-in-navigation/)
 * Hello together
 * **I have the followed idea:**
 * In the end i would like to have a Template for a Travel Blog.
    Its quite simple.
   There will be 3 different kind of pages: -The blog as a Frontpage -An About us
   Page -An Overview of all Pictures shown on a Google Maps depend of the exif geo
   data. Created by the file “map.php”.
 * **What I get:**
    I created the Template. The styling is ok. The Navigation works.
   I can create posts and comments. This part was very easy.
 * **What i want:**
    I have a problem with the third page (the map). There should
   be a Link in the Navigation, so the User can navigate to the map. The Page should
   not be shown as a WordPress “Page”. The user should not have the possibility 
   to change anything.
 * The Html is created by the php file map.php.
    The Map is created well. All Picture
   locations are shown on the map. (I executed the file separately: [http://127.0.0.1/path_to_Wordpress](http://127.0.0.1/path_to_Wordpress)
   theme/traveltheme/map.php)
 * Whats the right way to implement this site in my template?
    Do i have to hardcode
   the link and add it to the Navigation?
 * Thanks for your help. I hope you have all Informations you need to understand
   my Project idea.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * (@linux4me2)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/static-php-in-navigation/#post-4343508)
 * I think you have your WordPress terminology off a bit and it needs to be clear
   in order for my answer to make sense.
 * I believe what you mean is that you created or installed a theme, and that one
   of your pages needs to be based on code generated by map.php. There are different
   ways to do what you describe, but here’s the way I would do it.
 * To do that, you would need to [create a child theme](http://codex.wordpress.org/Child_Themes),
   then [create a custom page template](http://codex.wordpress.org/Page_Templates#Custom_Page_Template),
   create a page called “Map” or whatever you want to call that page, and then assign
   it to the custom page template you created. You won’t have to enter any text 
   in your Map page unless you want to; the content will be created by your map.
   php code.
 * When you create the custom page template, I think I would start with the page.
   php from your parent theme, rename it to something like “page-map.php,” remove
   the code that would ordinarily display content, and replace it with the code 
   from your map.php file to output your map/images.
 *  Thread Starter [Tinsu](https://wordpress.org/support/users/tinsu/)
 * (@tinsu)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/static-php-in-navigation/#post-4343580)
 * Thank you for your Answer! 🙂
 * You understood the problem.
    I created the template. and it works thank your 
   for your help. I have to read much more to understand WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Static php in Navigation’ is closed to new replies.

## Tags

 * [naviagtion](https://wordpress.org/support/topic-tag/naviagtion/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tinsu](https://wordpress.org/support/users/tinsu/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/static-php-in-navigation/#post-4343580)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
