/ Published in: PHP

Custom sorting for events based on a custom field
needs to be added to navigation-links.php
requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
needs to be added to navigation-links.php
requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php elseif ( in_category('6') ) : ?> <div class="navigation-links"> 'order_by' => 'custom', 'meta_key' => 'Datum', 'format' => '%link', 'link' => '« Vorige', 'before' => '<span class="previous">', 'after' => '</span>', 'in_same_cat' => true, ) );?> 'order_by' => 'custom', 'meta_key' => 'Datum', 'format' => '%link', 'link' => 'Nächste »', 'before' => '<span class="next">', 'after' => '</span>', 'in_same_cat' => true, ) );?> </div><!-- .navigation-links -->
Comments
