WordPress.org

Support

Support » Themes and Templates » [Resolved] Get title in thumbnail array

[Resolved] Get title in thumbnail array

  • hello,

    is it possible to get the title of the post in the array?

    <img data-slider='<?php the_ID(); ?>'/> <?php the_post_thumbnail(
    	array(200, 200),
    	array(
    		'class' => 'thumbnail-slider',
    		'alt' => 'post thumbnail',
    		'title' => $title,
    		'data-slider' => $id
    	)
    ); ?>

    i get the ID, but not the title (I also tried $post-title)

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Get title in thumbnail array’ is closed to new replies.