Switch position of date and author in metadata loop-single-5.php

Posted in: Newspaper
Post count: 101

Hi,

we have added an extra custom field to the metadata, “coauteurs”.
While we can get it to display in the meta field, right under the title nexto where author and date are,
we really want to add the co authors to the main author. at the moment we only are able to place the additional authors to the back, so you get “author” “date” “coauthors”.

We would prefer it to be “author” “coauthors” “date”.

What would be the best way to proceed ?
Simply adding the extra code in the middle doesn’t help.

Currently we have this code:

<div class="td-module-meta-info">

<?php echo $td_mod_single->get_author();?>
<span class='metacelocation'><?php $values = get_field('coauteurs'); if($values) { foreach($values as $value) { echo ', ' . $value['display_name'] . '';} };?></span>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_comments();?>
<?php echo $td_mod_single->get_views();?>

</div>

An example of how things currently look can be found here:
http://v2.enola.be/2018/08/31/flying-horseman-julia-holter-ariel-pink-30-augustus-2018-olt-rivierenhof/

Viewing 1 post (of 1 total)
The forum ‘Newspaper’ is closed to new topics and replies.