• Resolved dathoschy

    (@dathoschy)


    Hi, I would like to give a corresponding note in amounts that are older than 1 year that the posts are older than 1 year and may no longer be up to date.
    With PHP, I usually enter this in Single.php or Contentsingle.php. Charta doesn’t have any PHP pages and I’m out with JavaScript.

    So where do I enter such a function and what does it have to look like?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author ThemeZee

    (@themezee)

    Right now WordPress Core does not support this with Full Site Editing. You have to create a custom block for this or find some third-party block plugin which supports this.

    One thing you can try is the Block Visibility plugin. It might allow you to display a block with a note and then hide it on newer posts. You can find the plugin on https://www.ads-software.com/plugins/block-visibility/

    With time, there will be more options with Full Site Editing. The PHP template system is 15 years old, Full Site Editing just a few months.

    Cheers,
    Thomas

Viewing 1 replies (of 1 total)
  • The topic ‘Mark posts older than 1 year’ is closed to new replies.