Title: Advanced Page Template
Author: xingxing2d
Published: <strong>9. 6. 2014</strong>
Last modified: 3. 12. 2014

---

Prohledat pluginy

Plugin **nebyl testován na 3 nejnovějších verzích WordPressu.** Nemusí už být tedy
podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může
být nestabilní.

![](https://s.w.org/plugins/geopattern-icon/advanced-page-template.svg)

# Advanced Page Template

 Autor: [xingxing2d](https://profiles.wordpress.org/xingxing2d/)

[Stáhnout](https://downloads.wordpress.org/plugin/advanced-page-template.zip)

 * [Podrobnosti](https://cs.wordpress.org/plugins/advanced-page-template/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/advanced-page-template/#reviews)
 *  [Instalace](https://cs.wordpress.org/plugins/advanced-page-template/#installation)
 * [Vývojáři](https://cs.wordpress.org/plugins/advanced-page-template/#developers)

 [Podpora](https://wordpress.org/support/plugin/advanced-page-template/)

## Popis

Advanced Page Template is a nice new approach to custom fields by page template.

Please try to configure the custom fields easily in the template file itself using
this plugin.

It doesn’t require to save any configuration data to database, just config the custom
fields in template file itself as how wordpress recognize the templates – Its just
wordpress way!

I think that it makes developing and deploying more easy and more sense for the 
developers. 🙂

Note: I highly recommend you to install and activate Advanced Custom Fields plugin
so as to get its perfect benefit. Field Types only works with Advanced Custom Fields
plugin.

#### Usage

Open a template file with any text editor and add some additional templating comment
lines starting with @custom_field keyword:

Example 1:

    ```
    /*
    * Template Name: 2column-layout
    *
    * @custom_field main, type: wysiwyg, label: Main content
    * @custom_field sidebar, type: wysiwyg, label: Sidebar
    */
    ```

Example 2:

    ```
    /*
    * Template Name: Contact Page
    *
    * @custom_field photo, type: image, label: Photo of manager
    * @custom_field phone, type: text
    * @custom_field map, type: google_map
    * 
    * Note: The photo, phone, map are the custom field names in each '@custom_field' line,
    * therefore use wordpress's 'get_post_meta' or ACF's 'get_field' method with those custom field names to get the values in this template. :)
    */
    ```

Please bring the page edit link up in the backend and select the template which 
you just edited and hit ‚Update‘ or ‚Save‘ button.
 After page refreshing, You can’t
miss new custom fields block from this template file.

Available Types and options with Advanced Custom Fields plugin are:

    ```
    /*
    * @custom_field tab1, type: tab, instructions: Tab

    * @custom_field field1, type: checkbox, choices: (1|2|3), label: Checkbox
    * @custom_field field2, type: color_picker, label: Color Picker
    * @custom_field field3, type: email, label: Email
    * @custom_field field4, type: file, label: File
    * @custom_field field5, type: google_map, label: Google map
    * @custom_field field6, type: image, label: Image
    * @custom_field field7, type: message, message: Message goes right here, label: Message
    * @custom_field field8, type: number, label: Number
    * @custom_field field9, type: page_link, label: Page link
    * @custom_field field10, type: password, label: Password

    * @custom_field tab2, type: tab, label: Tab

    * @custom_field field11, type: post_object, label: Post object
    * @custom_field field12, type: radio, choices: (1|2|3), label: Radio
    * @custom_field field13, type: relationship, label: Relationship
    * @custom_field field14, type: select, choices: (1|2|3), label: Select
    * @custom_field field15, type: taxonomy, label: Taxonomy
    * @custom_field field16, type: text, label: Text
    * @custom_field field17, type: textarea, label: Textarea
    * @custom_field field18, type: true_false, label: True/False
    * @custom_field field19, type: user, label: User
    * @custom_field field20, type: wysiwyg, label: Wysiwyg
    */
    ```

## Snímky obrazovky

[⌊Configuring the Custom Fields in the template file⌉⌊Configuring the Custom Fields
in the template file⌉[

Configuring the Custom Fields in the template file

[⌊Check custom fields out on the backend⌉⌊Check custom fields out on the backend⌉[

Check custom fields out on the backend

## Instalace

 1. Upload ‚advanced-page-template‘ to the ‚/wp-content/plugins/‘ directory
 2. Activate the plugin through the ‚Plugins‘ menu in WordPress
 3. Add some templating comment lines to a template source code.
 4. Specify that template which has templating comment lines to a page and save, then
    new custom fields block will appear on the bottom.

## Recenze

Pro tento plugin nejsou žádné recenze.

## Autoři

Advanced Page Template je otevřený software. Následující lidé přispěli k vývoji 
tohoto pluginu.

Spolupracovníci

 *   [ xingxing2d ](https://profiles.wordpress.org/xingxing2d/)
 *   [ xingxing ](https://profiles.wordpress.org/xingxing/)

[Přeložte “Advanced Page Template” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/advanced-page-template)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/advanced-page-template/),
podívejte se do [SVN repozitáře](https://plugins.svn.wordpress.org/advanced-page-template/),
nebo se přihlaste k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/advanced-page-template/)
pomocí [RSS](https://plugins.trac.wordpress.org/log/advanced-page-template/?limit=100&mode=stop_on_copy&format=rss).

## Přehled změn

#### 1.1.3

 * description update

#### 1.1.2

 * refactor

#### 1.1.1

 * a bug fix when save page.

#### 1.1.0

 * enabled array options.

#### 1.0.0

 * Advanced Page Template.

## Meta

 *  Verze **1.1**
 *  Poslední aktualizace **před 12 roky**
 *  Aktivních instalací **10+**
 *  Verze WordPressu ** 3.0.0 nebo novější **
 *  Testováno až do WordPressu **3.9.40**
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/advanced-page-template/)
 * Štítků
 * [advanced](https://cs.wordpress.org/plugins/tags/advanced/)[custom](https://cs.wordpress.org/plugins/tags/custom/)
   [field](https://cs.wordpress.org/plugins/tags/field/)[page](https://cs.wordpress.org/plugins/tags/page/)
   [template](https://cs.wordpress.org/plugins/tags/template/)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/advanced-page-template/advanced/)

## Hodnocení

 5 z 5 hvězdiček.

 *  [  2 5hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/advanced-page-template/reviews/?filter=5)
 *  [  0 4hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/advanced-page-template/reviews/?filter=4)
 *  [  0 3hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/advanced-page-template/reviews/?filter=3)
 *  [  0 2hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/advanced-page-template/reviews/?filter=2)
 *  [  0 1hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/advanced-page-template/reviews/?filter=1)

[Vaše hodnocení](https://wordpress.org/support/plugin/advanced-page-template/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/advanced-page-template/reviews/)

## Spolupracovníci

 *   [ xingxing2d ](https://profiles.wordpress.org/xingxing2d/)
 *   [ xingxing ](https://profiles.wordpress.org/xingxing/)

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/advanced-page-template/)