Create archive page for event to display custom event lists

 Currently event archive uses blog archive page so i want display events archive in different style

So we have to create new page in theme folder archive-event.php

now go to archive.php file copy all code and paste it into archive-event.php

Now change the title to All Events and subtitle for as you wish.

Delete while content for display event use front page event style for event.

Copy event summry div from front-page.php and paste inside while loop in archive-event.php

and save check event archive style changed.

Also change event Url for event archive page single-event.php.

like below -> 

 <a class="metabox__blog-home-link" href="<?php echo get_post_type_archive_link('event'); ?>">
        <i class="fa fa-home" aria-hidden="true"></i> Events Home
      </a>

and save.

Comments

Popular posts from this blog

Basics Of PHP

Creating App.js for Node Application

WordPress Full Guide For Developer