Advert Post Media
-
Hi,
First, I like to thank you for this great classified plugins.
Second, I installed the plugins but I have a problem.I need to insert the thumbnails in post content beside gallery. I tried the following code to return the post thumbnail and insert to the the post. It does work for default post but not for custom post type ‘advert’. How to go around that? Plus the code below return one image only. How can we make it return all attached thumbnail?
add_filter('the_content', 'put_thumbnail_in_posting'); function put_thumbnail_in_posting($content) { global $post; if ( has_post_thumbnail() && ( $post->post_type == 'post' ) ) { the_post_thumbnail( '', array( 'style' => 'float:left;margin:15px;' ) ); } return $content; }I really appreciate your help.
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Advert Post Media’ is closed to new replies.