If you need more customization beyond the shortcodes and hooks, and filters, you may create templates in your WordPress theme or child theme.
For more information on how this process generally works, you should check out the official WordPress Template Hierarchy guide.
To create a theme template for your single jobs, follow these steps:
- Make a copy of your
single.phpfile from either your active theme or from your parent theme’s folder into your child theme’s folder and name itsingle-matador-job-listings.php. - Make edits to the template file using PHP and HTML.
- Note: you may wish to override filters Matador adds to the
the_contentfilter if you do not prefer what Matador gives.
To create a theme template for your jobs archive (listing of jobs), follow these steps:
- Make a copy of your
archive.phpfile from either your active theme or from your parent theme’s folder into your child theme’s folder and name itarchive-matador-job-listings.php. - Make edits to the template file using PHP and HTML.
- Note: you may wish to override filters Matador adds to the
the_contentfilter if you do not prefer what Matador gives.
You may also create custom templates for the taxonomies (eg: categories, locations) if you enable them:
- Make a copy of your
archive.phpfile from either your active theme or from your parent theme’s folder into your child theme’s folder and name ittaxonomy-matador-TAXONOMY.php, whereTAXONOMYis the plural form of the taxonomy name, eg:categoriesorlocations. - Make edits to the template file using PHP and HTML.
- Note: you may wish to override filters Matador adds to the
the_contentfilter if you do not prefer what Matador gives.
When working in custom templates, you may use any of the template functions provided to you by Matador. To review those functions, check out our template functions guide.