This is the discussion topic for the Related entries extension.
Visit http://extensions.pivotx.net/entry/58/related-entries for more info or download.
[[related_entries
pre="<ul class='related-entries'>"
post="</ul><!--end related entries-->"
format="<li><a href='%link%' rel='bookmark'>%title%</a><br />%relation%</li>\n"
amount=5
search="tags"
method="strict"
order="desc"
excerpt_length=100
list_separator=", "
date_format="%day% %month% %ye% - %hour24%:%minute%"
]]
if ($orderby == "random") {
$qry['order'] = "RAND()";
} elseif ($orderby == "asc") {
$qry['order'] = "target_uid ASC";
} else {
$qry['order'] = "target_uid DESC";
}
if ($orderby == "random") {
$qry['order'] = "RAND()";
} elseif ($orderby == "asc") {
$qry['order'] = "t.target_uid ASC";
} else {
$qry['order'] = "t.target_uid DESC";
}
carlus6306 wrote:I can only make it work with tags. I want to use it only with a specific category (like the extension documentation describes, but I can't make it work that way, I get no related links). Could you give me an example code using a category as related? for instance the category News.
Thank you in advance.
[[related_entries pre="<div id='related-entries'>" post="</div>"
format="<a href='%link%'>%title%</a><br />"
amount=20
order="desc"
excerpt_length=100
]] </div>
Users browsing this forum: No registered users and 1 guest