Title: Custom Post Type Rewrite
Author: thingsym
Published: <strong>28 Janar, 2015</strong>
Last modified: 22 Gusht, 2024

---

Kërkoni te shtojca

Kjo shtojcë **s’është testuar me 3 hedhjet e rëndësishme të fundit në qarkullim 
të WordPress-it**. Mund të mos e mirëmbajnë më, ose mundet të mos mbulohet më dhe
mund të ketë probleme përputhshmërie, kur përdoret me versione më të freskët të 
WordPress-it.

![](https://s.w.org/plugins/geopattern-icon/custom-post-type-rewrite.svg)

# Custom Post Type Rewrite

 Nga [thingsym](https://profiles.wordpress.org/thingsym/)

[Shkarkim](https://downloads.wordpress.org/plugin/custom-post-type-rewrite.1.2.1.zip)

 * [Hollësi](https://sq.wordpress.org/plugins/custom-post-type-rewrite/#description)
 * [Shqyrtime](https://sq.wordpress.org/plugins/custom-post-type-rewrite/#reviews)
 *  [Instalim](https://sq.wordpress.org/plugins/custom-post-type-rewrite/#installation)
 * [Zhvillim](https://sq.wordpress.org/plugins/custom-post-type-rewrite/#developers)

 [Asistencë](https://wordpress.org/support/plugin/custom-post-type-rewrite/)

## Përshkrim

Custom Post Type Rewrite plugin adds default custom post type permalinks.

By default, there are no some permalinks of custom post type.
 The Custom Post Type
Rewrite plugin adds permalink structure of custom post type. Following:

 * date-based
 * author-based
 * front

Note: Regarding has_archive and rewrite in $args of Parameters, the priority of 
the rewrite rule conforms to register_post_type().

## Instalim

 1. Download and unzip files. Or install Custom Post Type Rewrite plugin using the 
    WordPress plugin installer. In that case, skip 2.
 2. Upload “custom-post-type-rewrite” to the “/wp-content/plugins/” directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Save permalink structure and refresh permalinks through the ‘Settings > Permalinks’
    menu in WordPress.
 5. Have fun!

**IMPORTANT**: By default, WordPress will not work the Custom Post Type Rewrite.
You need to refresh permalinks.

#### Support

If you have any trouble, you can use the forums or report bugs.

 * Forum: [https://wordpress.org/support/plugin/custom-post-type-rewrite/](https://wordpress.org/support/plugin/custom-post-type-rewrite/)
 * Issues: [https://github.com/thingsym/custom-post-type-rewrite/issues](https://github.com/thingsym/custom-post-type-rewrite/issues)

#### Contribution

Small patches and bug reports can be submitted a issue tracker in Github. Forking
on Github is another good way. You can send a pull request.

 * [VCS – GitHub](https://github.com/thingsym/custom-post-type-rewrite)
 * [Homepage – WordPress Plugin](https://wordpress.org/plugins/custom-post-type-rewrite/)

You can also contribute by answering issues on the forums.

 * Forum: [https://wordpress.org/support/plugin/custom-post-type-rewrite/](https://wordpress.org/support/plugin/custom-post-type-rewrite/)
 * Issues: [https://github.com/thingsym/custom-post-type-rewrite/issues](https://github.com/thingsym/custom-post-type-rewrite/issues)

#### Patches and Bug Fixes

Forking on Github is another good way. You can send a pull request.

 1. Fork [Custom Post Type Rewrite](https://github.com/thingsym/custom-post-type-rewrite)
    from GitHub repository
 2. Create a feature branch: git checkout -b my-new-feature
 3. Commit your changes: git commit -am ‘Add some feature’
 4. Push to the branch: git push origin my-new-feature
 5. Create new Pull Request

#### Contribute guidlines

If you would like to contribute, here are some notes and guidlines.

 * All development happens on the **develop** branch, so it is always the most up-
   to-date
 * The **master** branch only contains tagged releases
 * If you are going to be submitting a pull request, please submit your pull request
   to the **develop** branch
 * See about [forking](https://help.github.com/articles/fork-a-repo/) and [pull requests](https://help.github.com/articles/using-pull-requests/)

#### Test Matrix

For operation compatibility between PHP version and WordPress version, see below
[Github Actions](https://github.com/thingsym/custom-post-type-rewrite/actions).

## Shqyrtime

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

### 󠀁[Doesn’t do anything after installing](https://wordpress.org/support/topic/doesnt-do-anything-after-installing/)󠁿

 [chrimbus](https://profiles.wordpress.org/chrimbus/) 15 Maj, 2017

I installed this plugin and activated it. There is no indication anything has changed
and I have no other menu’s/options for permalinks than I did before I installed 
it.

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

### 󠀁[Well, it worked.](https://wordpress.org/support/topic/well-it-worked/)󠁿

 [jvesmero](https://profiles.wordpress.org/jvesmero/) 3 Shtator, 2016

What more can you ask? Actually, I had to swap to this plugin because after migrating
and updating my site, the update version of the Custom Post Type Permalinks by Toro_Unit
stopped working as intended. It kept doubling the custom post type slug in the archive
url. For example: [Link redacted]

 [ Lexojini krejt 2 shqyrtimet ](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/)

## Kontribues & Zhvillues

“Custom Post Type Rewrite” është software me burim të hapur. Në këtë shtojcë kanë
dhënë ndihmesë personat vijues.

Kontribues

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

[Përkthejeni “Custom Post Type Rewrite” në gjuhën tuaj.](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-rewrite)

### Ju intereson zhvillimi?

[Shfletoni kodin](https://plugins.trac.wordpress.org/browser/custom-post-type-rewrite/),
shkarkoni [depon SVN](https://plugins.svn.wordpress.org/custom-post-type-rewrite/),
ose pajtohuni përmes [RSS-je](https://plugins.trac.wordpress.org/log/custom-post-type-rewrite/?limit=100&mode=stop_on_copy&format=rss)
te [regjistri i zhvillimeve](https://plugins.trac.wordpress.org/log/custom-post-type-rewrite/).

## Regjistër ndryshimesh

#### 1.2.1

 * tested up to 6.2.0
 * fix composer scripts
 * update github actions
 * add support section and enhance contribution section to README
 * fix license

#### 1.2.0

 * edit README
 * add test case
 * fix the priority of the rewrite rule of register_post_type()

#### 1.1.4

 * change mysql from version 8.0 to version 5.7 using docker image
 * fix indent style
 * change plugin initialization to wp_loaded hook

#### 1.1.3

 * fix ‘Trying to get property ‘permalink_structure’ of non-object’ warning
 * change plugin initialization to plugins_loaded hook
 * replace assert from assertEquals to assertSame

#### 1.1.2

 * update wp-plugin-unit-test.yml
 * bump up yoast/phpunit-polyfills version
 * change os to ubuntu-20.04 for ci
 * add Upgrade Notice
 * change requires at least to wordpress 4.9
 * change requires to PHP 5.6

#### 1.1.1

 * add timeout-minutes to workflows
 * add phpunit-polyfills
 * tested up to 5.8.0
 * add .editorconfig

#### 1.1.0

 * tested up to 5.7.0
 * separate a class into a class file
 * add test case
 * add sponsor link
 * add FUNDING.yml
 * add donate link
 * update wordpress-test-matrix
 * add GitHub actions for CI/CD, remove .travis.yml

#### 1.0.4

 * fix rewrite_rule

#### 1.0.3

 * fix indent and reformat with phpcs and phpcbf
 * add composer.json for test
 * add static code analysis config
 * change Requires at least from 3.4.1 to 3.8

#### 1.0.2

 * fix add_rewrite_rule
 * fix date-based permalink structure
 * fix phpunit tests

#### 1.0.1

 * refactoring
 * add phpunit and tests

#### 1.0.0

 * Initial release

## Të tjera

 *  Version **1.2.1**
 *  Përditësuar së fundi më **2 vjet më parë**
 *  Instalime aktive **1 000+**
 *  Version WordPress-i ** 4.9 ose më i madh **
 *  E provuar deri me **6.6.5**
 *  Version PHP-je ** 5.6 ose më i madh **
 *  Gjuhë
 * [English (US)](https://wordpress.org/plugins/custom-post-type-rewrite/)
 * Etiketa
 * [custom post type](https://sq.wordpress.org/plugins/tags/custom-post-type/)[permalink](https://sq.wordpress.org/plugins/tags/permalink/)
   [permalinks](https://sq.wordpress.org/plugins/tags/permalinks/)
 *  [Pamje e Thelluar](https://sq.wordpress.org/plugins/custom-post-type-rewrite/advanced/)

## Vlerësime

 3 nga 5 yje të mundshëm.

 *  [  1 shqyrtim me 5 yje     ](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/?filter=5)
 *  [  0 shqyrtime me 4 yje     ](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/?filter=4)
 *  [  0 shqyrtime me 3 yje     ](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/?filter=3)
 *  [  0 shqyrtime me 2 yje     ](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/?filter=2)
 *  [  1 shqyrtim me 1 yje     ](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/#new-post)

[Shihni krejt shqyrtimet](https://wordpress.org/support/plugin/custom-post-type-rewrite/reviews/)

## Kontribues

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

## Asistencë

Keni diçka për të thënë? Ju duhet ndihmë?

 [Shihni forum asistence](https://wordpress.org/support/plugin/custom-post-type-rewrite/)

## Dhuroni

Do të donit të përkrahnit shpënien më tej të kësaj shtojce?

 [ Dhuroni për këtë shtojcë ](https://github.com/sponsors/thingsym)