I can not find a normal tutorial in which it is told how to put the layout on WP + so that it can all be edited from the admin (text change, pictures, etc.).

Suppose I have an LP. I take underscores and based on it I will make a template, but there are no sensible lessons in runet. I realized that the sections needed should be output in the edges using cycles.

Throw tutorials. Like text and video. I wasn’t banned in Google, but I’m having a hard time finding it in the bourgeois itself.

I read about custom fields (ACF). I generally do not catch up on what and where. Infa is not online at all. If you put off custom fields, you first need to figure out how to use the headings in the right order to display the LP + sections which cycles are needed so that everything can be output from the admin panel. Around everyone says that WP is so easy and convenient, but for me it's like a nuclear bomb to collect. I do not understand anything.

Help =)

Closed due to the fact that the question is too general for the participants HamSter , Sergey Gornostaev , Kromster , Dmitriy Simushev , PashaPash 5 Oct '16 at 14:07 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

1 answer 1

To display entries from a specific category:

 <?php $posts = get_posts ("category=9&orderby=date&numberposts=10"); ?> <?php if ($posts) : ?> <?php $i=0; ?> <?php foreach ($posts as $post) : setup_postdata ($post); ?> тело html <?php $i++; if ($i==2) $i=0; ?> <?php endforeach; ?> <?php endif; ?> 

For a specific entry by id:

 <?php $my_postid = 472;$content_post = get_post($my_postid); ?> <?php $content = $content_post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]&gt;', $content); echo $content; ?> 

Plus, use the <?php $field = get_field('slide2', 291); ?> fields plugin: <?php $field = get_field('slide2', 291); ?> <?php $field = get_field('slide2', 291); ?> short code essessno

Plus wp-kama.ru to help

  • one
    And you think he will understand here what? For him, it's just a set of cracking - pepel_xD
  • using the "spear" method, you can try it, try to learn a bit about kama, or use the logic of the "category =" && "$ my_postid =" by looking at the numbers to substitute your id record and see the result, and then more - Lieutenant Jim Dangle