Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #549534

    Hi

    I need to know how do I changes the Single post title. The issue is that I’m using the Job Listing Plugin and as soon as I view the Job Post it uses the “Blog- Lates News” heading. I need this ti say Vacancies instead but still have Latest News for the News Single Page.

    Thanks a mill

    Gav

    #549823

    Hi Gavin!

    Please add following code to Functions.php file in Appearance > Editor

    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'] = "Vacancies";
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    Best regards,
    Yigit

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