Поддержка Темы и шаблоны Помогите разобраться в документации

  • Typical template files include:
    comments.php
    footer.php
    header.php
    sidebar.php

    Using these template files you can put template tags within the index.php master file to include these other files where you want them to appear in the final generated page.
    To include the header, use get_header().
    To include the sidebar, use get_sidebar().
    To include the footer, use get_footer().
    To include the search form, use get_search_form().

    Here is an example of the include usage:
    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Как я понимаю, если у нас есть файл footer.php в шаблоне, то его можно подключить просто функцией <?php get_footer(); ?> ?

    Нигде прописывать эту функцию не нужно?
    Формат записи, типа get_имя_файла() ?
    Любого?
    пусть будет artemhp.php,
    то подключить его <?php get_artemhp() ?>

Просмотр 2 ответов — с 1 по 2 (всего 2)
Просмотр 2 ответов — с 1 по 2 (всего 2)
  • Тема «Помогите разобраться в документации» закрыта для новых ответов.