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

    I have seen threads on how to do this but they are impossibly long and confusing. Could you please provide the instructions? Thank you!

    #1463030

    Hey williamslyd,

    Thank you for the inquiry.

    Please use the following filter in the functions.php file to append the author name to the grid items:

    function avf_post_slider_meta_content_mod($meta_content, $entry, $index, $atts, $meta_array) {
        $meta_author = '<div class="slide-meta-del">/</div>';
        $meta_author .= '<div class="slide-meta-author">';
        $meta_author .= __( 'Author:', 'avia_framework' ) . '<span> ' . get_the_author_meta('display_name', $entry->post_author) . '</span>';
        $meta_author .= '</div>';
    
        $meta_content .= $meta_author;
    
        return $meta_content;
    }
    
    add_filter('avf_post_slider_meta_content', 'avf_post_slider_meta_content_mod', 10, 5);

    Best regards,
    Ismael

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