• I want to display some additional contents on monthly archive pages. The tricky part is, for every month, the addtional contents are different, sometimes it is a chart, sometimes it is a picture, sometimes it is an accordion content, sometimes it is several addtional posts(not from the month).

    Is there a nice way to do this?

    The only thing I can think of is hacking archive.php and then add a long switch .. case code block, something like

    switch ( month )
    case '2022-08':
        echo do_shortcode('[elementor-template id="74"]'); 
    case '2022-07':
        echo do_shortcode('[elementor-template id="73"]');

    Alternatively, I can create categories for each month, and then use advanced custom fields to add month related content to custom fields, then display the fields also by hacking archive.php.

    Is there any other better way to do this, without coding?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Can you please send me a link to your website?

    Just to clarify, do you want to add features using the code to use with archive settings?

    Thread Starter shenkwen

    (@shenkwen)

    https://s3.fbny.org/category/test-category/

    This is a test link I used to illustrate what I want to achieve. The theme is Buddyboss-theme. I was able to add a dummy elementor template underneath the archive contents by editing archive.php

    <?php endif; ?>
    
    	</main><!-- #main -->
    	<?php echo do_shortcode('[elementor-template id="74"]'); ?>  //ADD THIS LINE
    </div><!-- #primary -->
    <?php get_sidebar(); ?>

    The tricky part is, I want to keep the “archive content area”( in this case the post list ) intact. I am aware that using Elementor I can build something similar to the post list, but I do want to keep it intact in this case.

    Hi,Since you are an Elementor Pro user, you can open a support ticket at my.elementor.com.

    I’d also suggest you check out our Elementor Community forum, we have created it to connect Elementor users together and share knowledge, my.elementor.com.

    www.remarpro.com rules state that commercial products are not supported here.

    Thread Starter shenkwen

    (@shenkwen)

    You have a forum? I never found it. The only thing I can find is a facebook group, which I am already in.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to display additional contents on archive page?’ is closed to new replies.