Began to learn WP, tell me in which direction to move in order to do the following: There is a block

<div class="services_plate"> <h3 class="services_plate_header">Налоговая и бухгалтерская отчетность</h3> <div class="services_content"> <ul class="services_content_list"> <li class="services_content_list_element">что - то</li> <li class="services_content_list_element">что - то</li> <li class="services_content_list_element">что - то</li> <li class="services_content_list_element">что - то</li> <li class="services_content_list_element">что - то</li> </ul> <a href="" class="services_content_link">Заказат услугу</a> </div> 

if you do this:

 <div class="services_plate_box"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="services_plate"> <h3 class="services_plate_header"><?php the_title(); ?></h3> <?php the_content(); ?> <div class="services_content"> <ul class="services_content_list"> <li class="services_content_list_element">какой-то текст</li> </ul> <a href="" class="services_content_link">Заказат услугу</a> </div> </div> <?php endwhile; ?> <?php endif; ?> 

That record is added, but here's how to make the ability to add text to the list, respectively, the list of items can be an arbitrary number.

  • You can use custom fields as a plugin or as standard, and output the corresponding function. Article in codex.wordpress.org/Custom_Fields - kandellak
  • possible through the_content () if you store the text of the service in the body of the post - kandellak
  • @kandellak, it is possible through the_content () how to do this in more detail? - pepel_xD
  • Well, if you organize the storage of information about services in the records, in the body of the record, let it be a description, if you need additional. fields and screw them and in a cycle to bring, here is an example codex.wordpress.org/%D0%A6%D0%B8%D0%BA%D0%BB_WordPress - kandellak
  • @kandellak, I will understand .... I thought everything was simple, but it was not there .... - pepel_xD

0