$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Create multiple custom HTML pages|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Create multiple custom HTML pages

matteradmin9PV0评论

I need to make a few unique "landing" pages each with unique designs. They will each be one off.

I am looking for a way to organise these pages.

What I used to do is have a subfolder in the theme directory called "pages" with a list of php files for example the homepage would be if is "homepage" then show this html.

Then I would simple include each "page" in my functions.php file. I don't think this is the accepted way to do things.

Some pages would be "homepage", "pedagogy", "results" etc... how can I organise these static HTML pages without them being in the root of my theme like page-homepage.php or page-results.php?

Or is the functions.php include method viable?

I need to make a few unique "landing" pages each with unique designs. They will each be one off.

I am looking for a way to organise these pages.

What I used to do is have a subfolder in the theme directory called "pages" with a list of php files for example the homepage would be if is "homepage" then show this html.

Then I would simple include each "page" in my functions.php file. I don't think this is the accepted way to do things.

Some pages would be "homepage", "pedagogy", "results" etc... how can I organise these static HTML pages without them being in the root of my theme like page-homepage.php or page-results.php?

Or is the functions.php include method viable?

Share Improve this question asked Jan 2, 2019 at 15:37 Jethro HazelhurstJethro Hazelhurst 1214 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can created pages within wordpress itself and then assign a custom template.

You may store the template files however you like as long as they are wihtin the theme folder itself.

https://developer.wordpress/themes/template-files-section/page-template-files/

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far