https://kriesi.at/support/topic/setting-blog-to-be-a-customized-page/
This morning I identified a new/big problem with the solution provided.
Basically on some of my PAGES the title was being replaced with the text and hyperilnk of a specific totally non-related blog POST.
Couldn’t figure out the pattern, but it was the same post every time.
Hey JeeBar!
Thank you for using Enfold.
Can you please provide a link to the post? Is this the code that you used: https://kriesi.at/support/topic/setting-blog-to-be-a-customized-page/#post-506983
Cheers!
Ismael
Yes, that is the code I used.
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
function fix_single_post_title($args,$id)
{
if ( $args['title'] == 'Blog - Latest News' )
{
$args['title'] = "Blog";
$args['link'] = "http://dev.solacesystems.com/blog";
$args['heading'] = 'h1';
}
return $args;
}
This week I set up a whole new instance of my site (http://dev2.solacesystems.com) on a different host that I’ll be switching to. I have added the same code to my functions file and so far the problem has not come back. But I don’t think it was immediate last time either. Yes, I know that’s weird. Anyway, I’m scheduled to switch to this new site this weekend, so have until then to “wait and see” if it comes back.