Answer the question
In order to leave comments, you need to log in
How to pull custom pages on Wordpress?
How to pull custom pages on Wordpress?
Well, I have a layout, for example, there are 7 different pages (about us, contacts, company history, affiliates, events, ...),
they are similar only in
that they have the same footer and header,
and all the filling of the pages is different.
Those. I can insert html code into the content field of the page, which is in the admin panel, but this is 'kick-ass' as moronic.
Answer the question
In order to leave comments, you need to log in
Hike found the answer, in the deaf create a page in the topic
https://ru.stackoverflow.com/questions/384344/word...
I would do so.
We create a page, then a template using method 1 https://wp-kama.ru/id_5177/3-sposoba-sozdat-shablo...
then using the advancedcustomfield plugin we create fields and select in the settings Location
Page Template> is equal to> template name
and so on for each page
Maybe it's not relevant anymore, but I'll try to answer in detail
1) To begin with, you will need a starting topic. This is a special type of theme for WordPress that does not have its own design or it is minimal and tailored for editing and making websites. For example the topic Underscores
2) Start editing the topic. Move the styles to style.css, the header and footer of the site to header.php and footer.php respectively.
3) If the page templates are different, then it makes sense to create files (I usually name them this way) page-contacts.php, page-history.php, etc. It is important that each file must start with <?php //Template Name: Template Name ?> then WordPress will understand that this is a page template
3B) Then, in the admin panel, create the appropriate pages and assign templates to them. To allow the user to upload content in parts (here is the logo, title, list of services, map, etc.) -- use the Advanced Custom Fields plugin
So what's the problem I don't understand? Do you need all pages to be different, with different headers and footers or what? If that's the problem, then is that a problem?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question