Variable in module loop

Posted in: Newspaper
Post count: 37

Hi, in Td_module8.php I add variabe ‘$DateControl’ and I want to assign in the cycle the value of the date of the post:


...
$DateControl = "";

<div class="<?php echo $this->get_module_classes();?>">

<div class="item-details">

<?php

echo $DateControl;

?>

....

<?php $DateControl = $this->get_date();?>

Why $DateControl always empty?

Post count: 20688

Hi,

I don’t quite understand what you want to do with that module. However it would be best to consult with a professional developer or freelancer if possible before making code modifications, to avoid unexpected results.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.