Links in pages
-
Hello.
I have been wondering if there’s a way to use a custom php page that I have created instead of page_id(). I am not talking about using permalinks.
What I mean is that, for example, in my index.php file I want to create a link to a custom created php page (i.e. family_gallery.php). Something like this:
<a href="family_gallery.php">Family</a>">
But when I do this and I click on this link, it redirects me to the 404 page, and not the family_gallery.php page.
Right now I am using this as my navigation, but I don’t want to use page_id().
<li<?php if ( is_page(74) ) { echo ' class="activef"'; } ?> id="navigation-01"><a href="<a href="<?php echo get_page_link(74); ?>">Family</a>">Family</a></li>
Is there a way to do this?
[Bump deleted – please don’t do that here]
- The topic ‘Links in pages’ is closed to new replies.