Ich habe einen Custom Post Type erstellt. Zwischen den einzelnen Beiträgen soll über Pfeile navigiert werden. Die Pfeile habe ich mit CSS erstellt:
.arrow_left {
position:absolute;
left:[COLOR=#800000]10px[/COLOR];
top:[COLOR=#800000]5px[/COLOR];
width: [COLOR=#800000]0[/COLOR];
height: [COLOR=#800000]0[/COLOR];
border-top: [COLOR=#800000]10px[/COLOR] solid transparent;
border-bottom: [COLOR=#800000]10px[/COLOR] solid transparent;
border-right:[COLOR=#800000]10px[/COLOR] solid lightgrey;
}
.arrow_right {
position:absolute;
right:[COLOR=#800000]10px[/COLOR];
top:[COLOR=#800000]5px[/COLOR];
width: [COLOR=#800000]0[/COLOR];
height: [COLOR=#800000]0[/COLOR];
border-top: [COLOR=#800000]10px[/COLOR] solid transparent;
border-bottom: [COLOR=#800000]10px[/COLOR] solid transparent;
border-left:[COLOR=#800000]10px[/COLOR] solid lightgrey;
}
In der single-customposttype.php habe ich versucht, folgenden Code für die Navigations-Funktionalität dieser Pfeile zu nutzen:
<?php previous_post_link([COLOR=#800000]'%link'[/COLOR],[COLOR=#800000]'<div class="arrow_left"></div>'[/COLOR]); ?>
<?php next_post_link([COLOR=#800000]'%link'[/COLOR],[COLOR=#800000]'<div class="arrow_right"></div>'[/COLOR]); ?>
Aber erfolglos. Die Pfeile werden nicht angezeigt. Was ist falsch an diesem Code?