Skip to content

pasqualevitiello/Hemma-Excursions-CPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hemma-Excursions-CPT

Code to be used in Hemma Child theme to add a new Custom Post Type named "Excursion" (based on Events CPT).

How to use it

Copy all functions included in functions.php file and paste them at the bottom of the functions.php file included in your Hemma child theme.

Copy the following files into the child theme directory:

  • single-excursion.php
  • template-excursion.php

Activate the child theme and you're ready to go!

Rename the CPT

If you want to use a different CPT name, replace these occurrences in functions.php file as well as in single-excursion.php and template-excursion.php:

  • "Excursion"
  • "excursion"
  • "Excursions"
  • "excursions"

Finally, rename single-excursion.php and template-excursion.php, you should make sure to replace the "excursion" with the name of your new custom post type.

About

Code to be used in Hemma Child theme to add a new Custom Post Type named Apartment (based on Rooms CPT).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages