Get the date does not work within td_module

Posted in: Newspaper
Post count: 10

Hello, I’ve created forms to build my homepage. The td_module file works however if I get get_the_date or get_the_author can not read the date or author of the single post, it reads the date and author of the page.

Please provide an example of the code:

This works:
<Div class = “category_modulo77”>
<? Php echo $ this-> get_category ();?>
</ Div>

This does not work:

<Div class = “data_modulo77”>
<? Php echo get_the_date ($ post); ?>
</ Div>

Because? Do you help me? I have to see the date and author of the single post and not the date of the page where the post is.

Thank you

Post count: 20688

Hi,

If you want to create your own module, here are some guides to help you do it, and an example
https://forum.tagdiv.com/api-modules-introduction/
https://forum.tagdiv.com/td_api_moduleadd/
https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
The existing modules can be found here – https://www.screencast.com/t/xCw4hd8E
You could create you own if you do not find one of the predefined modules suited for your website, but this requires decent coding skills and could prove to be a difficult task. Or you could modify one of the existing modules the way you want directly, or through a child theme.

Thanks

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