Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #1240186

    dear fabulous theme support
    I found out that this template: “template-archives.php” produces this archive page when I choose “archive” while creating a new ARCHIVE page. Please see attached page in private content.
    My first question:
    is it possible to show the featured image on listing of:
    blog post and pages?
    as you can already see on portfolio

    Second question:
    can I create a grid lay-out for the pages listing – similiar to portfolio view on that archive page?
    thanks in advance for best theme support I know

    • This topic was modified 3 years, 3 months ago by KulturDesign.

    Hey Stanko,

    Here is the code you can put in your funtions.php

    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
        if($context == 'archive') $layout = 'single-big';
            return $layout;

    If you need further assistance please let us know.

    Best regards,


    Dear Victoria
    thanks for your fast reply.
    I´ve inserted this snippet in my child theme functions but with no effect on my page lay-out :-(
    Any other suggestions?



    You can use the get_the_post_thumbnail function above line 73 of the template-archives.php file to display the featured image above the post title or link.

    echo "<li><a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".the_title_attribute('echo=0')."'>".get_the_title()."</a></li>";

    // https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/

    Best regards,


    dear Ismael
    thank you – but the function you posted is already implemented in the template-archive ????
    best regards


    Hi Stanko,

    The code Ismael posted gets the title, but he said that you could add the code he linked to above the title for example to get the featured image. You could try something like this for example:

    echo get_the_post_thumbnail();

    Best regards,


    thank you for this solution – we can close this topic


    Hi KulturDesign,

    Great :)

    We are closing the thread.

    If you need further assistance please let us know in a new one.

    Best regards,

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘ARCHIVE – template-archives.php’ is closed to new replies.