Support

Home Forums Event Espresso Premium Table View addon placed in custom archive template page

Table View addon placed in custom archive template page

Posted: June 2, 2016 at 6:06 pm

Viewing 2 reply threads


Valor Training Group

June 2, 2016 at 6:06 pm

I am using the multiple event registration addon and would like my clients to be directed to the events list page with the table view instead of the individual posts for the events. What’s the best way to accomplish this?

I have already created a custom archive page, just need to know how to put the table view template addon on that page.

Thanks,

Laran


Valor Training Group

June 2, 2016 at 6:12 pm

This is the code from my custom template page:

<?php get_header(); ?>
<div id=”content” <?php Avada()->layout->add_class( ‘content_class’ ); ?> <?php Avada()->layout->add_style( ‘content_style’ ); ?>>
<?php if ( category_description() ) : ?>
<div id=”post-<?php the_ID(); ?>” <?php post_class( ‘fusion-archive-description’ ); ?>>
<div class=”post-content”>
<?php echo category_description(); ?>
</div>
</div>
<?php endif; ?>

<?php get_template_part( ‘templates/blog’, ‘layout’ ); ?>
</div>
<?php do_action( ‘avada_after_content’ ); ?>
<?php get_footer();

// Omit closing PHP tag to avoid “Headers already sent” issues.


Josh

  • Support Staff

June 3, 2016 at 11:10 am

Hi there,

The best way to direct them to the events list page with the table view instead of the individual posts for the events follows:

1) Create a new WP page and place the [ESPRESSO_EVENTS_TABLE_TEMPLATE] short code in the page content.
2) Copy or make note of the page’s URL
3) Paste to replace the URL into the line that starts with return the following code, and add the code to your website:

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

Viewing 2 reply threads

The support post ‘Table View addon placed in custom archive template page’ 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.

Event Espresso