Italianizzato e personalizzato il readme.md

This commit is contained in:
ulaulaman 2020-07-08 21:52:07 +02:00
parent 3664880823
commit 2dbb8f37db
1 changed files with 10 additions and 21 deletions

View File

@ -2,38 +2,27 @@
## Description
A WordPress plugin to filter posts with taxonomies terms and load more posts via Ajax.
You can add posts and filters via a **shortcode** on any page.
Plugin per realizzare un filtro di ricerca per *post* e *custom post type*. Personalizzazione dell'originale, [*Aiajx Filter Posts*](https://github.com/Robbertdk/wordpress-ajax-filter-posts) di [**Robbert de Kuiper**](http://www.robbertdekuiper.com).
Il plugin funziona tramite uno *shortcode*:
```
[ajax_filter_posts post_type="recipe" tax="meal_type, food_type, diet_type" posts_per_page="12"]
```
This plugins uses no dependencies, is translatable and WPML ready.
La personalizzazione ha implicato traduzione delle parti in inglese senza aggiungere un vocabolario.
## Parameters
## Parametri
- **post_type**
Post type to show. Default post.
Il tipo di post da mostrare. Di *default* filtra sugli articoli normali.
- **tax**
A comma seperated list of taxonomies to filter the post by. Default post_term.
Una lista, separata da virgole, delle tassonomie da utilizzare per filtrare i post. *Default* post_term.
- **post_per_page**
Numbers of maximum posts to retreive at a time. Default 12.
Numero massimo di post da mostrare per ogni istanza. *Default* 12.
## Overwriting template files
## Installazione
To easily overwrite template files you can copy one or more of the files in the templates folder to your own theme. Create a folder `ajax-filter-posts` in the root of your theme directory and copy the files in that newly created folder. Keep in mind that you have to keep the folder structure intact. For example: If you want a custom version of `loop.php`, you copy the file to `<<your-public-folder>>/wp-content/themes/<<your-theme>>/ajax-filter-posts/partials`.
## Motivation
I build a lot of sites that needed a functionality like this and decided to create a plugin for it. Although there are a lot of plugins doing something like this, they usually add a lot of bloat and are not developer friendly. This plugin is for a developer easier to implement, easier to edit and keeps te codebase cleaner.
## Installation
Clone this repo to your plugins or mu-plugins folder. When you load it in your mu-plugins folder, you have to call the plugin via a file that is directly in the `mu-plugins` folder. See [this article](https://www.sitepoint.com/wordpress-mu-plugins/) for more information.
## License
GNU GENERAL PUBLIC LICENSE
Si consiglia di clonare il [*repository* originale](https://github.com/Robbertdk/wordpress-ajax-filter-posts) e seguire le istruzioni.