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

    I refer this url and then my site is changed.

    But i have a one question.
    how do i transform the blog ‘latest news’ into post Category name?

    Neither latest news nor post title.
    i want replace category name..

    Please give me a solution.

    #623072

    Hey celebcomms!

    Please use the code as following

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

    Cheers!
    Yigit

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