Linking front-page.php to home.php
-
Combed everything there is online about front-page.php vs index.php, setting static pages etc. read all the Codex references time and again. There seem to be no answer to the following, and it has been days now of trial and errors, but to no avail.
I have a front-page.php set as the static front page of the WordPress site. In it there is a link that I’d like to link to the home.php or index.php.
How do I write the url?
<a href='<?php echo esc_url( home_url()); ?>' title='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?>' rel='home'>
What do i write instead of home_url(), which lands me of course on the front-page.php ?
I have also tried the get_permalink for
'page_for_posts'
, but that lands me again on the starting page.This is really complicating the theme development, as there seem to be no way to write a link from the static front page to the index.php or home.php
Thank you very much for your help!
- The topic ‘Linking front-page.php to home.php’ is closed to new replies.