HI,
On this templates page (archive), the h1 is the title of the last post. Why ?
I want somethings like “Catégorie ; Interview staff”
thanks
Hey Luc,
Please provide a link to the site/page in question so I can understand what you mean.
Best regards,
Jordan Shannon
Hi, scuses me I forgot the url : ) : https://www.footbreizhacademie.com/fil-info/
Hi,
Thank you for the info.
Did you add or use the avf_which_archive_output filter in the functions.php file? By default, the name of the category should display in the archive pages, not the title of the first post.
Best regards,
Ismael
Hi,
I’ve not add this filter in functions.php. I’ve the default archive.php templates. Do you have a solution for me ?
thanks
Hi,
Thank you for the update.
We may need to access to the dashboard in order to check the issue further. Please post the login details in the private field and make sure that the Appearance > Editor panel is accessible.
Best regards,
Ismael
Hi, thanks, here the login in private.
Hi,
Thank you for the info.
It works correctly when we disable the avf_title_args filter in the functions.php file. Try to add a condition so that the filter is only applied on single posts.
function fix_single_post_title($args,$id)
{
if(!is_single()) return;
$args['title'] = get_the_title($id);
$args['link'] = "";
$args['heading'] = 'h1';
return $args;
}
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
Best regards,
Ismael
Hi, You have change somethings ? it’s correct now
Hi,
It seems Ismael’s explanation of the fix is above. It could also have been a caching issue if it did not work initially.
Best regards,
Jordan Shannon