Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Linking front-page.php to home.php

$
0
0

Replies: 0

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!

  • This topic was modified 14 minutes ago by komiska.

Viewing all articles
Browse latest Browse all 67836

Trending Articles