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

    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.

    #563284

    Hey Julie!

    can you provide us admin access please? Deactivate all plugins while testing. Clear caching.

    Regards,
    Andy

    #563404

    Hi Andy, Thanks for the response. In private, credentials are listed for the staging site where the same issue is evident.

    #563503

    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

    #563506

    Basislis then why would the rest of the site work?

    #563857

    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

    #563887

    Hi Andy,
    I did ask WPEngine to switch off caching. Still no change. Could it be related to translation of the theme?

    #564132

    Hey!

    what if you activate a default WordPress theme? Let us know about your results.

    Best regards,
    Andy

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.