• Hi!
    I am interested in one question, is it possible to add a timer in the post archive, in addition to the default values, maybe through a snippet or a plugin?
    The main task is that the posts of Promotions display a countdown, so that the user has an idea of how long the discounts on a certain product will last. In the posts themselves, I do this with a widget from Elementor, the problem is with outputting it at least in some form in the archive. Thank you.
    I am attaching the pic. https://framesi.online/wp-content/uploads/2024/01/Frame-427319375.png

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    I appreciate your question. well here is count down plugin’s link you can try them.
    1. https://ww.wp.xz.cn/plugins/widget-countdown/

    2. https://ww.wp.xz.cn/plugins/countdown-timer-ultimate/
    Hope you find your answer. Thank you

    Thread Starter lonozx

    (@lonozx)

    Thank you for answer.
    But I already have this kind of widget from Elementor Pro. Main issue is to display it as post excerpt on posts widget.
    Like this:
    https://framesi.online/wp-content/uploads/2024/01/SAles.jpg

    Moderator bcworkz

    (@bcworkz)

    Are you sure the post excerpts in an archive are actually widgets? They are usually editor blocks, not widgets. There is actually little difference between the two except they are edited in different places.

    Which block or widget are you using? You could ask the developer of it if there is a filter hook available where you can insert additional content. If not you’ll either need to develop a custom block or widget, or alter the archive template to include such content below each post item.

    You could try arbitrarily using “the_excerpt” filter. It may or may not work, depending on the underlying code of the block/widget.

    One might think added content could be accomplished with a shortcode, but shortcodes generally do not work in excerpts, only within full content.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add countdown on post archive’ is closed to new replies.