want post by time

Posted in: Newspaper
Post count: 12

I want to out small news items but not by date I want by time please help

Post count: 35449

Hi,

Maybe I do not understand correctly your question, the sort by date means the time when was a post has been published.

Thank you for your understanding.

Post count: 12

yes my need is time of published post

Post count: 20688

Hi,

To avoid misunderstandings, please specify in details what exactly you want to do. This will be very helpful.

The theme blocks, grids and other post displaying elements can sort them by publish date and time
https://forum.tagdiv.com/block-settings-guide/

Publish date mean will also take the time into account, so for example a latest sorting method will order the posts according to the publishing time and date.

Or maybe you want to show the time next to the date in the post pages, and also the modules. That is possible
https://forum.tagdiv.com/topic/show-post-time-2/

Thanks

Post count: 12

for reference i want this type
https://imgur.com/a/qP943Xj

Post count: 20688

I understand now. By a theme option that is not possible for the modules, only with some modifications to the modules (depending on module used) it may be possible.

That is like a time ago, there is a solution provided by a theme user in this topic
https://forum.tagdiv.com/topic/implementing-the-time-ago/
In that case if the post publish date is less than 5 days ago, it will display the “ago”, while if the post is more than 5 days ago, it will display the date. This would be a solution.

Post count: 12

please guide me properly I am not advanced user

Post count: 20688

Hi,

Basically you will have to modify the module you want to display a time ago date. An example is provided in this topic
https://forum.tagdiv.com/topic/the-time-ago-in-block-3-is-correct-but-another-block-is-wrong-time/

The theme modules are here – https://www.screencast.com/t/pgEdt29bC
Each block and grid is made of modules – https://forum.tagdiv.com/theme-blocks-modules/
If you want to display that date in a module or more modules, each will have to be modified.

They can be modified in a child theme, this way you won;t lose the customization after a theme update when the theme files are replaced
https://forum.tagdiv.com/the-child-theme-support-tutorial/

A guide or documentation about such a modification is not available, if there was I would gladly provide it to you.

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