• Resolved shafee85

    (@shafee85)


    Hi,

    I have a H3 title named NEWS ALERTS (not clickable right now) on my blog homepage and i want to link this to a file named news_alerts.php which will be located in the relevant themes folder.

    The reason to do this is that i want the news_alert.php page to be a similar page like index.php but with different query_post commands. Other than this the news_alerts.php will be exactly the index.php file.

    How am about to insert a link to the news_alerts.php file in the wordpress index.php file? any suggestions will be greatly appreciated.

    Thank you for reading.

Viewing 5 replies - 1 through 5 (of 5 total)
  • a href=”https://www.yourblog.com.news_alerts.php/”>News Alerts</a

    Put < in front and > at the end of the line i gaved you.

    Thread Starter shafee85

    (@shafee85)

    wow. thanks for the speedy response.

    I am having trouble using alss.blog’s method. my blog domain is something like www.mywebsite.com/blog/

    how can i use your technique here?

    <a href="www.mywebsite.com/blog.news_alerts.php/">News Alerts</a> doesnt work ??

    you have to use it like this:

    a href=”www.mywebsite.com/blog/news.alerts.php/”>News Alerts</a

    Use < in front and > at the end of the line.

    Thread Starter shafee85

    (@shafee85)

    Unfortunately it still doesnt work ??

    Here is my testing blog url
    demo.zeelabs.com/SAHR

    Notice the top News Alerts title. I have entered the a href code as blogatorul suggested, yet it still doesnt work correctly. What am i doing wrong?

    Thread Starter shafee85

    (@shafee85)

    I figured out a way to overcome this.

    Without directly trying to link to a file on the template folder i tried creating a new category and linked that file using category-xx.php. I simply had to give the link there.

    Issue sorted. Thank for the input ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to link to a custom page which is on your template file to index.php?’ is closed to new replies.