Title: Sewn In XML Sitemap
Author: Jupitercow
Published: <strong>13 آگوست 2014</strong>
Last modified: 2 سپتامبر 2017

---

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

![](https://ps.w.org/sewn-in-xml-sitemap/assets/banner-772x250.jpg?rev=1722259)

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

![](https://ps.w.org/sewn-in-xml-sitemap/assets/icon-256x256.jpg?rev=1088698)

# Sewn In XML Sitemap

 توسط [Jupitercow](https://profiles.wordpress.org/jcow/)

[دانلود](https://downloads.wordpress.org/plugin/sewn-in-xml-sitemap.2.0.6.zip)

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

 [پشتیبانی](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/)

## توضیحات

#### 2.0.3 changed default post types used from only ‘post’ and ‘page’ to ALL public post types except “attachment”. This is a cleaner approach, but may require customization. There is more info on customization below.

This site doesn’t notify of new support threads, so send a [contact](http://jcow.com/)
through our form to notify of a new thread for a quicker response.

Simple way to automatically generate XML Sitemaps when a page or post is saved. 
Very simple, no cruft or extra features you won’t use. There are two main customizations
available.

 * Choose which post types are added (posts and pages by default)
 * Adds a meta box to all included post types to remove single posts from being 
   added to the sitemap

It also works well with our [Sewn In Simple SEO](https://wordpress.org/plugins/sewn-in-simple-seo/)
plugin. When both are installed, they integrate together.

#### Control what post types are added

    ```
    /**
     * Completely replace the post types in the XML sitemap
     *
     * This will replace the default completely. Returns: array('news','event')
     *
     * The result is to remove 'post' and 'page' post types and to add 'news' and 
     * 'event' post types
     *
     * @param   array   $post_types List of post types to be added to the XML Sitemap
     * @return  array   $post_types Modified list of post types
     */
    add_filter( 'sewn/seo/post_types', 'custom_seo_post_types' );
    function custom_seo_post_types( $post_types )
    {
        $post_types = array('news','event');
        return $post_types;
    }
    ```

#### Remove a specific post from the sitemap

A checkbox is added to each post type that is included in the sitemap. Checking 
it will remove that specific item from the sitemap.

This checkbox also removes posts from wp_list_pages, you can turn that off using
this filter:

    ```
    add_filter( 'sewn/sitemap/wp_list_pages', '__return_false' );



    /**
     * This filter arrived in 2.0.3
     *
     * Remove specific posts programatically. This could go into functions.php or a plugin.
     *
     * This example removes all posts that have post meta field of "test" set.
     */
    add_filter( 'sewn/sitemap/post', 'custom_remove_test_posts', 10, 2 );
    function custom_remove_test_posts( $value, $post )
    {
        $status = get_metadata( 'post', $post->ID, 'test', true );
        if ( $status ) {
            $value = false;
        }
        return $value;
    }
    ```

#### Change frequency for a post type, could also be used an a single post basis by checking the the $post-ID or $post->post_name

    ```
    /**
     * Change sitemap frequency in XML, default is "monthly"
     *
     * options: always, hourly, daily, weekly, monthly, yearly, never
     */
    add_filter( 'sewn/sitemap/frequency', 'custom_sitemap_frequency', 10, 2 );
    function custom_sitemap_frequency( $frequency, $post )
    {
        if ( 'news' == get_post_type($post) ) {
            $frequency = 'daily';
        }
        return $frequency;
    }
    ```

#### سازگاری

Works with the [Sewn In Simple SEO](https://wordpress.org/plugins/sewn-in-simple-seo/)
plugin. When installed, the XML sitemap checkbox integrates with the SEO fields 
and this plugin will use the SEO post types. The goal is to keep things very simple
and integrated.

## عکس‌های صفحه

[⌊The XML Sitemap panel with checkbox to remove posts in the backend.⌉⌊The XML Sitemap
panel with checkbox to remove posts in the backend.⌉[

The XML Sitemap panel with checkbox to remove posts in the backend.

[⌊The Sewn In Simple SEO panel with XML Sitemap & Sewn In Simple Social Optimization
installed.⌉⌊The Sewn In Simple SEO panel with XML Sitemap & Sewn In Simple Social
Optimization installed.⌉[

The [Sewn In Simple SEO](https://wordpress.org/plugins/sewn-in-simple-seo/) panel
with XML Sitemap & [Sewn In Simple Social Optimization](https://wordpress.org/plugins/sewn-in-simple-social/)
installed.

## نصب

 * Copy the folder into your plugins folder, or use the “Add New” plugin feature.
 * Activate the plugin via the Plugins admin page

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

  Installation Instructions

 * Copy the folder into your plugins folder, or use the “Add New” plugin feature.
 * Activate the plugin via the Plugins admin page

  No questions yet.

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

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

### 󠀁[Simply works](https://wordpress.org/support/topic/simply-works-119/)󠁿

 [Dara Duman](https://profiles.wordpress.org/dara_duman/) 3 سپتامبر 2016

It simply works. I use their SEO plugin as well. I sometimes wonder why plugins 
like this getting less exposure from wordpress.org searches than certain sponsored
bloated software. Ohh yeah, active installs and downloads. Keep promoting the same
things which never get updated, never improved but installed over and over again..
Ohh yeah, active installs and downloads. Keep feeding the same chicken with the 
same egg. Congratulations!

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

### 󠀁[Don't be Mislead by the Small Number of Users](https://wordpress.org/support/topic/dont-be-mislead-by-the-small-number-of-users/)󠁿

 [CaveatLector](https://profiles.wordpress.org/caveatlector/) 3 سپتامبر 2016

This is a refreshingly simple, low-overhead way to generate XML sitemaps that should
be more widely used.

 [ خواندن تمامی 5 نقد و بررسی‌ ](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/)

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

“Sewn In XML Sitemap” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

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

 *   [ Jupitercow ](https://profiles.wordpress.org/jcow/)
 *   [ Jake Snyder ](https://profiles.wordpress.org/ekaj/)

[ترجمه “Sewn In XML Sitemap” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/sewn-in-xml-sitemap)

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

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

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

#### 2.0.6 – 2017-09-02

 * Removed array short syntax, updated meta style.

#### 2.0.5 – 2017-08-30

 * Updated meta boxes, images.

#### 2.0.4 – 2016-01-29

 * Fixed bug in meta boxes. Updated readme.

#### 2.0.3 – 2015-07-27

 * Updated the default post types to ALL public post types except ‘attachment’.
 * Add filter for posts on sitemap creation to granularly control which posts are
   added when needed.
 * Added filter for “frequency”.

#### 2.0.2 – 2015-02-13

 * Fixed problem with post_types in new system.

#### 2.0.1 – 2015-02-13

 * Bug with the get_field method and connecting to SEO plugin.

#### 2.0.0 – 2015-02-12

 * Updated to remove ACF dependency and cleanup functionality.

#### 1.0.3 – 2014-08-03

 * Added to the repo.

## اطلاعات

 *  نگارش **2.0.6**
 *  آخرین به‌روزرسانی **9 سال پیش**
 *  نصب‌های فعال **30+**
 *  نگارش وردپرس ** 3.6.1 یا بالاتر **
 *  آزمایش‌شده تا **4.8.33**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/sewn-in-xml-sitemap/)
 * برچسب
 * [seo](https://fa.wordpress.org/plugins/tags/seo/)[sitemap](https://fa.wordpress.org/plugins/tags/sitemap/)
   [xml sitemap](https://fa.wordpress.org/plugins/tags/xml-sitemap/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/sewn-in-xml-sitemap/advanced/)

## امتیازها

 5 از 5 ستاره.

 *  [  امتیاز 4 5-ستاره     ](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/?filter=1)

[بررسی شما](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/reviews/)

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

 *   [ Jupitercow ](https://profiles.wordpress.org/jcow/)
 *   [ Jake Snyder ](https://profiles.wordpress.org/ekaj/)

## پشتیبانی

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

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/sewn-in-xml-sitemap/)

## کمک مالی

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

 [ کمک مالی به این افزونه ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=jacobsnyder%40gmail%2ecom&lc=US&item_name=Jacob%20Snyder&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)