To get article title and text using id in joomla

<?php

$article_id = $id';
$article =& JTable::getInstance("content");
$article->load($article_id);
echo '<h1>'. $article->get("title").'</h1>';
echo $article->get("introtext"); // and/or fulltext

?>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s