The best option exaggeration of the landing page on WP?

Which option is most acceptable\optimal when you stretch a landing page to cms wordpress (to the customer was clear and simple to edit blocks\screens)? :

1. Using the plugin ACF

2. Screen - widget. (Example: the "about" screen - Landing_About class extends WP_Widget { .... ).

3. The connection of the sections in the template - get_template_part( 'sections/about_us' );

4. Or the simplest way to index -

<div class="section_header"> <h2><?php $idObj = get_category_by_slug('about'); $id = $idObj--->term_id; echo get_cat_name($id); ?></h2> <div class="descr_wrap"> <div class="descr"><?php echo category_description($id); ?></div> </div> </div> ...
July 2nd 19 at 16:53
2 answers
July 2nd 19 at 16:55
Solution
I have already answered a similar question recently. Make custom post type "section." Each entry is a separate section. They create ACF fields. Template index.php, modifying the main query using the pre_get_posts hook to your loaded records of arbitrary type. For each record for the convenience of making your template and includethe it using get_template_part().
: The lesson is not met. What's there to see? The logic I wrote to you) - Velva.Rogahn commented on July 2nd 19 at 16:58
How did you do the blog if you do not understand the pattern index.php and the function get_template_part, the loop WordPress Loop? - Velva.Rogahn commented on July 2nd 19 at 17:01
July 2nd 19 at 16:57
Solution
In my opinion
1. The use of ACF plugin
is it difficult to explain to the customer how to use it? And if the plugin update won't break everything? - Velva.Rogahn commented on July 2nd 19 at 17:00
will not crumble, there is in fact you will have 2 functions get_field and the_field, which the whole conclusion rests, as they do not change and will not. To use simply. - Velva.Rogahn commented on July 2nd 19 at 17:03
is it difficult to explain to the customer how to use it? => and what is there to explain all the fields have zagolovki and content, just need to show where there is a page with fields.
And if the plugin update won't break everything? => crawling the plugin about 1 year several times updated no difficulties arose.

And as with punctum 2. Screen - widget. it's hemorrhoids. - Else.Mohr32 commented on July 2nd 19 at 17:06
: Thanks! - Velva.Rogahn commented on July 2nd 19 at 17:09

Find more questions by tags WordPress