Multiple editable content on page
EDIT: I've found out that by using Advanced Custom Fields I can edit multiple fields on a page. Why WP doesn't have this feature by default I'll never know.
This is the kind of ability I was looking for that PerchCMS has by default.
Thanks for your answers.
I'm new to writing websites using Wordpress as a CMS, and in the past I've used a CMS called PerchCMS which allows me to add extra multiple sections by using the php tag of:
?php perch_content('InformationTitle');?
?php perch_content('Information');?
?php perch_content('AboutTitle');?
?php perch_content('AboutContent');?
With Wordpress I really don't understand how to add multiple sections in this way, I trawled the Internet for answers, but there appear to be no answers anywhere else.
Part of my code is as follows:
?php if (have_posts()) : ?
?php while (have_posts()) : the_post(); ?
img src="?php bloginfo('template_directory'); ?/assets/img/logo.png" class="fg3 logo" alt="Logo" /
div id='services'
p
?php the_content('services'); ?
/p
/div
div id='about'
p
?php the_content('about'); ?
/p
/div
With this method, all the content I write gets repeated.
What am I doing wrong? I understand that the loop is there to loop through the posts on the page, and I've seen mention of plugins such to achieve this, but surely Wordpress should offer this by default? There are many many sites that have different sections that need to be edited independently.
Any help is greatly appreciated.