shafee85
Member
Posted 2 years ago #
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.
aless.blog
Member
Posted 2 years ago #
a href="http://www.yourblog.com.news_alerts.php/">News Alerts</a
Put < in front and > at the end of the line i gaved you.
shafee85
Member
Posted 2 years ago #
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 :(
blogatorul
Member
Posted 2 years ago #
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.
shafee85
Member
Posted 2 years ago #
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?
shafee85
Member
Posted 2 years ago #
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 :)