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

    how do I display the “field” Title instead of Blog … in an article?
    only if I use the “advanced editor” the title is displayed at the top next to the bread crumbs

    i have add ths is in function…but i have the Title Field , 2 time now…
    ths title dispat the second time in the “CONTENT”

    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_title($id);
    $args[‘link’] = get_permalink($id);
    $args[‘heading’] = ‘h1’;
    }

    return $args;
    }

    • This topic was modified 4 years, 10 months ago by marcobe.
    #1112797

    Hey marcobe,
    Please include the url to the page in question so we can examine.

    Best regards,
    Mike

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