Displaying post_title on Category page
-
So I’m displaying a thumbnail gallery using the_post_thumbnail on my custom category page. Underneath each post_thumbnail I have the post_title. Right now instead of showing the post title it is showing the name of the image attached to the post. This is a problem because a lot of the images have a 2 at the end (EG post name 650L, image named 650L2) So the 650L2 is what is showing up underneath my post_thumbnails. How would I go about having the post TITLE display as opposed to the featured image name? Here is my thumbnail code as of now:
<?php echo get_post(get_post_thumbnail_id())->post_title; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Displaying post_title on Category page’ is closed to new replies.