0
votes

I've just created a website using wordpress and a custom theme for it. This is my theme directory

/themes/customtheme/
 -index.php
 -header.php
 -footer.php
 -blog.php
 ....

The index.php includes header,footer,information to shown on my website, and a link to my blog page.

Blog file will looks same as normal blog site.

May i know how to write a hyperlink(a href) in index.php under theme directory so that it can prompt to the blog.php when click?

1

1 Answers

0
votes

If I understand well your question you need to create a new page template using your blog.php file. Just add the following code at the beginning of the file:

<?php
/*
Template Name: My Blog Page
*/

And then create in the backed a new page and associate it to the newly created template.

Read more about page templates here.