@xentar,
That’s not possible in the current code. It would need a hack. If you have hacked the code already to prepend the category name you could try splitting the resulting string into an array (use the explode() function) and then sort the array before imploding it again.
Thread Starter
xentar
(@xentar)
Thanks for the fast answer. I’m no that great programmer (really spaghetti if you ask me) but following your idea i got this:
('' == $tablelinks) ? $tablelinks .= "[" .$name_category . "] " . $post_title : $tablelinks .= " [" . $name_category . "] " . $post_title;
$piece = explode("[", $tablelinks);
sort($piece);
$lastpiece = array_pop($piece);
$tablelinks = implode("[", $piece);
$tablelinks .= "\r\n[" .$lastpiece;
but i’m sure i’m doing something bad cause the last term don’t appear with his link, it appear glued to the penultimate term. In general works… but with just that tiny problem. Probably isn’t the place to ask, cause this is more “programation” than plugin support… ^^U
@xentar,
I don’t know why the array_pop() call is needed, what happens if you leave that part out?
Thread Starter
xentar
(@xentar)
@mattyrob,
if i don’t add the array_pop() the last piece get glued to the penultimate term like this:
[category] Title[category] Title
So i get the last one with array_pop, add the “\r\n[” and separate it from the penultimate… but with array_pop still glue it… in some way:
(copy paste of the mail)
[Busco Práctica] no funciono
http://www.url.com/
[Busco Trabajo] Otra prueba con separacion
http://www.url.com/
[Compro] Prueba
http://www.url.com/
[Compro] prueba ingreso WP 3
[Vendo] desde Salinas
http://www.url.com/
http://www.url.com/
Thread Starter
xentar
(@xentar)
Found a solution. disabled the code that merge the link and added it to the $tablelink line.
Thanks a lot for the help!
@xentar,
I’m glad you figured out a fix.