Title: Custom HTML/PHP Post Templates
Author: Stephen AfamO
Published: <strong>22 دسامبر 2016</strong>
Last modified: 9 جولای 2017

---

جستجوی افزونه‌ها

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/html-php-pages-and-posts.svg)

# Custom HTML/PHP Post Templates

 توسط [Stephen AfamO](https://profiles.wordpress.org/stephenafamo/)

[دانلود](https://downloads.wordpress.org/plugin/html-php-pages-and-posts.2.0.0.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/html-php-pages-and-posts/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/html-php-pages-and-posts/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/html-php-pages-and-posts/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/html-php-pages-and-posts/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/html-php-pages-and-posts/)

## توضیحات

This plugin allows you to use any HTML or PHP file as the template for any page 
or post.

Simply upload the file and select it.
 You can upload custom js and css files into
the media library and link to them from the HTML file.

Options:

 * Overwrite All: You overwrite the entire theme and use your custom file
 * Overwrite Content: Keeps the header, footer, sidebar, e.t.c. Simply overwrites
   the body of the page or post
 * Above Content: Your custom content is simply added to the top of the page content
 * Below Content: You custom content is placed just beneath the page content.

#### Adding support for custom post types

By default the pulugin works with pages and posts, however, go to the settings to
enable it on any other registered post type.

use the `hppp_post_types` filter to add more post types.

Like this:

    ```
        public function post_type_modify ($post_types) {
            $post_types[] = 'custom_post_type';
            return $post_types;
        }

        add_filter( 'hppp_post_types', 'post_type_modify' );
    ```

## نصب

 1. Upload `html-php-pages-and-posts` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## سوالات متداول

  Installation Instructions

 1. Upload `html-php-pages-and-posts` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

  What about external JS and CSS files?

You can upload it all into the media library. Simply reference them properly in 
the html file.
 e.g. `<link rel='stylesheet' href='http://example.com/wp-content/
2017/01/my_custom_stylesheet.css' type='text/css' />`

  Will template tags work in my custom templates?

Yes.
 All wordpress functions, and any installed plugin function will work if called
properly

  What post types will this work with?

By default, it can only be used by on pages and posts, but you can add any other
post type by hooking into the `hppp_post_types` filter.

## نقد و بررسی‌ها

![](https://secure.gravatar.com/avatar/dd6b1b16bed8b4cfb74969006f1f6b496b6c9d3ef4f018eea261de6a11ab28ba?
s=60&d=retro&r=g)

### 󠀁[just save my life](https://wordpress.org/support/topic/just-save-my-life/)󠁿

 [aladinDr](https://profiles.wordpress.org/aladin007463/) 19 سپتامبر 2017 1 پاسخ

with this plugin i added mmore than 17 custom php for one of my clients without 
scary to fall in 500 error … just good job guys

![](https://secure.gravatar.com/avatar/924ae5210edf116347cd57c370a6bc968a3df28ba6710f3636cd4442859a5af8?
s=60&d=retro&r=g)

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-930/)󠁿

 [Stephen AfamO](https://profiles.wordpress.org/stephenafamo/) 19 ژانویه 2017

I use this on a couple sites I own and it works wonderfully. I hope you can find
it useful.

 [ خواندن تمامی 2 نقد و بررسی‌ ](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/)

## توسعه دهندگان و همکاران

“Custom HTML/PHP Post Templates” نرم افزار متن باز است. افراد زیر در این افزونه 
مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Stephen AfamO ](https://profiles.wordpress.org/stephenafamo/)

[ترجمه “Custom HTML/PHP Post Templates” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/html-php-pages-and-posts)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/html-php-pages-and-posts/)،
[مخزن SVN](https://plugins.svn.wordpress.org/html-php-pages-and-posts/) را بررسی
کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/html-php-pages-and-posts/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/html-php-pages-and-posts/)
مشترک شوید.

## گزارش تغییرات

#### 2.0.0

 * Add settings page to enable support for any registered post type
 * Allow users to set default template for any registered post type

#### 1.1.0

 * Add filter hook to modify supported post_types

#### 1.0.0

 * First release

## اطلاعات

 *  نگارش **2.0.0**
 *  آخرین به‌روزرسانی **9 سال پیش**
 *  نصب‌های فعال **60+**
 *  نگارش وردپرس ** 3.0.1 یا بالاتر **
 *  آزمایش‌شده تا **4.8.29**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/html-php-pages-and-posts/)
 * برچسب
 * [custom pages](https://fa.wordpress.org/plugins/tags/custom-pages/)[custom posts](https://fa.wordpress.org/plugins/tags/custom-posts/)
   [custom templates](https://fa.wordpress.org/plugins/tags/custom-templates/)[html](https://fa.wordpress.org/plugins/tags/html/)
   [php](https://fa.wordpress.org/plugins/tags/php/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/html-php-pages-and-posts/advanced/)

## امتیازها

 5 از 5 ستاره.

 *  [  امتیاز 2 5-ستاره     ](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/#new-post)

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/html-php-pages-and-posts/reviews/)

## مشارکت کنندگان

 *   [ Stephen AfamO ](https://profiles.wordpress.org/stephenafamo/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/html-php-pages-and-posts/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](http://stephenafamo.com)