Tagged: enfold, spanish, translation
Interesting occurrence with custom filter you’ve provided me on my Spanish site. The filter is to replace the Latest Blog header for posts with the post title. Code you’ve provided:
add_filter(‘avf_title_args’, ‘fix_single_post_title’, 10, 2);
function fix_single_post_title($args,$id)
{
if ( is_singular(‘post’) )
{
$args[‘title’] = get_the_title($id);
$args[‘link’] = get_permalink($id);
$args[‘heading’] = ‘h1’;
}
return $args;
}
Issue:
The code only sometimes works! Some category posts have the title displaying while another category has the Enfold static header. Why?
Please see example URLs in private.
Hey Julie!
can you provide us admin access please? Deactivate all plugins while testing. Clear caching.
Regards,
Andy
Hi Andy, Thanks for the response. In private, credentials are listed for the staging site where the same issue is evident.
Hey!
It seems to be an issue with wpengine cache system is blocking it to been working properly.
Can you give it a look to that?
Thanks a lot
Regards,
Basilis
Basislis then why would the rest of the site work?
Hi!
it could be lots of reasons causing this issue, but Basilis might be right. Please contact wpengine about it and ask them to switch off any caching of your server.
Cheers!
Andy
Hi Andy,
I did ask WPEngine to switch off caching. Still no change. Could it be related to translation of the theme?
Hey!
what if you activate a default WordPress theme? Let us know about your results.
Best regards,
Andy