Can I show the post date on only certain blocks? Also, can I show updated date?

Posted in: Newspaper
Post count: 376

1. Can I show the post date on only one of my blocks but not all others? I looked through the docs and only see a way to globally enable/disable this. I want the date to display in the FEATURED ANSWER and LATEST ANSWERS blocks only.

You can see here: https://www.InterestingAnswers.com

2. Can I display the updated date in the blocks rather than the creation date?

Thanks

Post count: 20688

Hi,

1. With flex blocks and flex grids that would be possible. These have options to enable/disable the date per block
http://prntscr.com/lpzzj8
So while the date general setting in the theme panel block settings is active, the date can be removed per flex block.

If this is not helpful maybe it could be done with some CSS, the general date setting has to be enabled first. Then set a custom class to the FEATURED ANSWER and LATEST ANSWERS blocks
https://www.screencast.com/t/DfDzaIcu0fH

Then use a code like this, replace the “myclass” with the one you used

.td_block_wrap .td-post-date,
.td_block_wrap .td-post-author-name span {
display: none;
}
.myclass .td-post-date,
.myclass .td-post-author-name span {
display: inline-block;
}

This should hide the date for all blocks, except the ones that have the “myclass” class set to them. You could gibe it a try.

2. That would require modifications to the modules used
https://forum.tagdiv.com/topic/how-to-show-date-update-article/

Thanks

Post count: 376

Ohhh. Flex blocks. I need to read about those then.

Thanks.

Post count: 20688

You can preview and even edit block designs made by our team using flex blocks, here
https://affiliate.tagdiv.com/#/load/Blocks
We will try to add designs based on flex grids in the future.

Post count: 376

Thanks. I never have looked into flex blocks.

Post count: 376

Why do you call them loop templates? What does loop mean?

Post count: 20688

Because the element displays a post loop – https://codex.wordpress.org/The_Loop
https://www.wpbeginner.com/glossary/loop/

Loops have no filtering options, they can be placed in pages, cloud category templates, cloud tag templates etc.

For example while creating a category template, place a loop element in it. The template can be applied to multiple categories, the loop will be filtered automatically to display posts only from the respective category.

This is useful to have, blocks for example will always display the same posts regardless of where they are places, according to the filtering you set, but the loop will display posts according to where it s placed.

Post count: 376

Oh it’s a WordPress term. That is a really strange word to use in my opinion.

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