astra_get_blog_post_thumbnail( string $type = 'archive' )

Blog post Thumbnail


Description


Parameters

$type

(string) (Optional) Type of post.

Default value: 'archive'


Source

File: inc/blog/blog.php

	function astra_get_blog_post_thumbnail( $type = 'archive' ) {

		if ( 'archive' === $type ) {
			// Blog Post Featured Image.
			astra_get_post_thumbnail( '<div class="ast-blog-featured-section post-thumb ' . astra_attr( 'ast-grid-blog-col' ) . '">', '</div>' );
		} elseif ( 'single' === $type ) {
			// Single Post Featured Image.
			astra_get_post_thumbnail();
		}
	}

Changelog

Changelog
Version Description
1.0.8 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.