KEMBAR78
New Text Document | PDF
0% found this document useful (0 votes)
11 views1 page

New Text Document

The document outlines the steps to create a separate page for past events in an admin dashboard. It instructs to create a new page titled 'past events', publish it, and then create a custom template file named 'page-past-events.php' to display the past events. The content from 'archive Event.php' should be copied to this new file with necessary modifications to the heading and title.

Uploaded by

compnetworxxx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

New Text Document

The document outlines the steps to create a separate page for past events in an admin dashboard. It instructs to create a new page titled 'past events', publish it, and then create a custom template file named 'page-past-events.php' to display the past events. The content from 'archive Event.php' should be copied to this new file with necessary modifications to the heading and title.

Uploaded by

compnetworxxx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

only list event that took in the past

Past Event Page(Custom Query Pagination)

Task

Show Past Event in Seperate page

so create a new page entirely named past events from admin Dashboard

Give it a title of past events

Content View to be left Blank


Click Publish
Click Preview

as we know the template file in the theme folder


that Powering the Screen is page.php
nowever of we need to write Custom Code and
if we need to pull the last event post

for that we need to have a unique special Template file for this past Event URL

so create a new file amd the name of the file is very important
page and then name of the slug of the page that we just created

slug you will edit screen check at the permalink at the end old parts

is the slug of that page


page-past-events.php

and then just type for a test text


you will see that this template file is controlling this page

now copy all the content from archive Event.php to thhis file

made some changes Geading and Title

You might also like