Moderator
t-p
(@t-p)
In the default Twenty Ten theme, it is part of the link. See theme templates.
In your case, if it is not, that means either you have changed it or you are using different theme.
Thread Starter
sdcr
(@solidcolour)
Thanks! you are right.
<?php previous_post_link( ‘%link’, ‘<span class=”meta-nav”>’ . _x( ‘←’, ‘Previous post link’, ‘twentyten’ ) . ‘</span> %title’ ); ?>
But it looks quite messy, so what is the code we really need?
Also I noticed in the new theme, the ‘twentyten’ appears in so many places. What is it for? Does it really need to be there?
Can anybody explain what is “. _x” for as well please?
Moderator
t-p
(@t-p)
In Twnty Ten default, you can see code in the theme templates.
For example:
single.php, lines 17-20
<div id=”nav-above” class=”navigation”>
<div class=”nav-previous”><?php previous_post_link( ‘%link’, ‘<span class=”meta-nav”>’ . _x( ‘←’, ‘Previous post link’, ‘twentyten’ ) . ‘</span> %title’ ); ?></div>
<div class=”nav-next”><?php next_post_link( ‘%link’, ‘%title <span class=”meta-nav”>’ . _x( ‘→’, ‘Next post link’, ‘twentyten’ ) . ‘</span>’ ); ?></div>
</div><!– #nav-above –>
also, loop.php, lines 24-27
Thread Starter
sdcr
(@solidcolour)
Yes, I’ve found that. Thanks.
Can you or anybody answer the other questions please?
Moderator
t-p
(@t-p)
Also I noticed in the new theme, the ‘twentyten’ appears in so many places. What is it for? Does it really need to be there?
perhaps indicates the name of the theme! If it indicates more than this, then may be somebody else can weighin.
Can anybody explain what is “. _x” for as well please?
_x perhaps indicates a local variable!
I am sure
Thread Starter
sdcr
(@solidcolour)
thanks t-p, i really wish wordpress team could development a 3.0 theme framework that is especially for the developers.