Home
N-13 News
Forums
Help
Search
Username
Password
Register
Forgot password?
How to add image to post
necklacesdiscou
Known bugs - 4.0.3
necklacesdiscou
Latest
N-13 News 4.0.3
What is N-13 News?
Where can I get help?
Known bugs
Forums
How To
How to echo the title?
Wzshop
Posted on 11 Jun 2011, 10:33:21
Access: Member
Total Posts: 5
Joined: 2011-06-11
Hello everyone,
How can I echo the title of a news article somewhere else?
like:
<?php echo $title ?>
Thanks a lot.
#3471
Last edited by Wzshop at 2011-06-11 10:33:28 Reason:
Rayc
Posted on 11 Jun 2011, 16:48:02
Access: Member
Total Posts: 74
Joined: 2010-06-13
If you want to display article titles or headlines on a different page on your site, do the following:
* Create a template for displaying just the headlines.
* Include the script as described
in the Wiki
by referencing your "headlines" template.
Code:
<?php
$template
=
'headlines'
;
include
'news/index.php'
;
?>
HTH
#3472
Last edited by Rayc at 2011-06-11 16:48:28 Reason:
Wzshop
Posted on 13 Jun 2011, 16:00:04
Access: Member
Total Posts: 5
Joined: 2011-06-11
thanks a lot for your reply.
It seems that the wiki is down?
What i want to do is to echo the title on the same page in the <title> tag, for SEO. I still need to create a template?
Thanks for yr time.
#3474
Chris
Posted on 13 Jun 2011, 16:08:17
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
The wiki should not be down, it loads for me. have a look at this page
http://code.google.com/p/n-13news/wiki/CodeSamples#Dynamic_page_titles_/_meta_tags
#3475
Wzshop
Posted on 13 Jun 2011, 16:09:20
Access: Member
Total Posts: 5
Joined: 2011-06-11
great, thanks a lot!
#3476
Network-13.com © 2013