Tagged: archive
-
AuthorPosts
-
August 23, 2020 at 6:51 pm #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 portfolioSecond 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
Stanko- This topic was modified 4 years, 4 months ago by KulturDesign.
August 24, 2020 at 5:27 pm #1240434Hey 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; }
https://kriesi.at/support/topic/category-archive-page-change-layout-to-show-excerpt/#post-459206
If you need further assistance please let us know.Best regards,
VictoriaAugust 25, 2020 at 9:01 am #1240609Dear 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?August 28, 2020 at 2:10 pm #1241580Hi,
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,
IsmaelAugust 29, 2020 at 11:26 am #1241809dear Ismael
thank you – but the function you posted is already implemented in the template-archive ????
best regards
StankoSeptember 1, 2020 at 7:10 am #1242381Hi 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,
RikardSeptember 12, 2020 at 12:14 pm #1245325thank you for this solution – we can close this topic
September 12, 2020 at 5:51 pm #1245402Hi KulturDesign,
Great :)
We are closing the thread.
If you need further assistance please let us know in a new one.
Best regards,
Victoria -
AuthorPosts
- The topic ‘ARCHIVE – template-archives.php’ is closed to new replies.