Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Pete on "This "taxonomy link list" snippet is adding an extra "/" to the links"

$
0
0

This snippet of groovy code displays all my custom taxonomy tags/terms (each tag/term is linked to their individual tag.php/term page)

Originally it outputted the URL correctly
http://darrengreen.com.au/perth-mortgage-broker/TERM_NAME

Now it outputs this URL (a double slash after the domain)
http://darrengreen.com.au//perth-mortgage-broker/TERM_NAME

Here is my code snippet

<?php
$xxxxx = get_terms('perth-mortgage-broker','hide-empty=0&orderby=name&order=asc');
$sep = '';
foreach ( $xxxxx as $xxxxx ) {
if( ++$count > 999 ) break;
echo $sep . '<a href="'.get_term_link($xxxxx).'">'.$xxxxx->name.'</a>';
$sep = ', ';
}
?>

Any help greatly appreciated. Thanks
Pete


Viewing all articles
Browse latest Browse all 8245

Trending Articles