Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.
add this piece of code in a custom.php file:
<?php
function custom_smart_link_default($links)
{
$links = sem_smart_link_wp_cats($links);
$links = sem_smart_link_wp_entries($links);
$links = sem_smart_link_wp_links($links);
return $links;
} # end custom_smart_link_default()
sem_smart_link_set_engine('default', 'custom_smart_link_default');
?>
D.
are you sure it doesn't work? as in, have you tried to create a static page and a category with the same name to check? there's really nothing in the code that should prevent the engine from getting overridden, and you can check if the code was executed by adding this immediately after it:
echo '<h1>smart link override code was executed</h1>';
D.
err... if you're not using the semiologic theme, then yes, you need to add that code in your theme's functions.php file.
D.
Now it works perfectly. Anyway I've already a new question.
The function you suggested me sets the following order:
<code>$links = sem_smart_link_wp_cats($links); $links = sem_smart_link_wp_entries($links); $links = sem_smart_link_wp_links($links);</code>
So the order is: categories, entries, blogroll links.
There is no way to set a specific order between pages and posts?
the answer is in the contents of sem_smart_link_wp_entries -- use that instead of the function itself
1 to 12 of 12