Support

Home Forums Event Espresso Premium Show featured image in table view only on specific pages

Show featured image in table view only on specific pages

Posted: October 22, 2015 at 5:01 pm


Mana Retreat

October 22, 2015 at 5:01 pm

Hi Support
I am trying to show the featured image in the table view only on specific pages however I can’t get the featured image to appear.
This is the modified code, previously provided by Lorenzo that I am using in the espresso-events-table-template.template.php file.

<?php
if(is_page(47)){ ?>
<td class="event_title event-<?php echo $post->ID; ?>"><?php echo $post->post_title; ?><br /><?php if ( has_post_thumbnail() ) : ?>
    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    <?php the_post_thumbnail('thumbnail'); ?>
    </a>
<?php endif; ?></td>

<?php
} else {
	?>
<td class="event_title event-<?php echo $post->ID; ?>"><?php echo $post->post_title; ?></td>
<?php
}
?>


Mana Retreat

October 22, 2015 at 7:35 pm

Hi
Resolved this by using the table template toggle feature.

The support post ‘Show featured image in table view only on specific pages’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Mana Retreat 3 years, 8 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!