Page Links To

Descrizione

Questo plugin permette di puntare una pagina di WordPress (o un articolo o un tipo di contenuto personalizzato) a un URL di tua scelta, anziché al suo URL originale di WordPress. Questo permette di reindirizzare gli utenti che accedono al vecchio (o “normale”) URL verso un nuovo URL che hai specificato.

Utilizzi comuni:

  • Impostare link di navigazione a sezioni del sito non realizzate con WordPress o a risorse esterne.
  • Pubblicare contenuti su altri blog (o altri servizi, come Medium) ma fare in modo che siano mostrati nell’elenco di articoli di WordPress. Tutto ciò che devi fornire è un titolo e un URL. Il titolo dell’articolo verrà collegato al contenuto sull’altro sito.
  • Per gli operatori di negozi, possibilità di collegare a prodotti su siti di altri rivenditori (magari con un codice di affiliazione) ma fare in modo che siano mostrati come se fossero prodotti del proprio negozio.
  • Creare un “URL amichevole” da usare al posto di uno complicato. Ad esempio se hai un URL come https://example.com/crazy-store-url.cgi?search=productId&sourceJunk=cruft … potresti semplicemente creare una pagina chiamata “My Store” e utilizzare il Page Links To per farla puntare all’URL “brutto”. Fornisci agli utenti il nuovo URL: https://example.com/my-store/ e questi verranno reindirizzati!

Come contribuire

Puoi contribuire (o segnalare bug) su Github.

Screenshot

  • Il meta box di Page Links To in azione
  • La finestra di dialogo dell’aggiunta rapida di un link alla pagina.

Installazione

  1. Carica la cartella page-links-to nella tua cartella /wp-content/plugins/.

  2. Attiva il plugin “Page Links To”.

Utilizzo per i contenuti esistenti:

  1. Accedi alla schermata di modifica di una pagina (o un articolo o un tipo di contenuto personalizzato).

  2. In basso, troverai il widget di Page Links To, seleziona “Un URL personalizzato”, e aggiungi un URL di tua scelta.

  3. Opzionalmente seleziona la casella per abilitare l’apertura del link in una nuova scheda del browser.

  4. Salva la pagina (o l’articolo o il tipo di contenuto personalizzato).

  5. Fatto! Ora il contenuto punterà all’URL specificato. Inoltre, se qualcuno tentasse di accedere al vecchio URL usato da WordPress per quel contenuto, verrebbe reindirizzato all’URL personalizzato.

Creare nuovi link alle pagine:

  1. Fai clic su Pagine > Aggiungi nuovo link alla pagina.

  2. Inserisci un titolo e un URL di destinazione.

  3. Opzionalmente inserisci uno slug personalizzato, che sarà utilizzato per creare un rendirizzamento a un URL locale.

  4. Fai clic su Pubblica.

FAQ

Come posso fare in modo che una pagina non punti a nulla? Vorrei usarla come contenitore segnaposto.

Semplicemente usa “#” come link. Non punterà da nessuna parte.

Il plugin può essere utilizzato per reindirizzare le categorie a URL arbitrari?

Al momento no. Contattami se sei interessato a tale funzionalità.

Se vuoi utilizzare un link ad un URL completo devi includere la porzione http://.

Posso utilizzare URL relativi per URL sullo stesso dominio?

Sì. Utilizzare un link del tipo /my-photos.php è una buona idea, in quanto funzionerà anche a fronte di uno spostamento del sito su un dominio differente.

Recensioni

1 Agosto 2024 1 risposta
Sadly this plugin has stopped working for us as we need it to open the link in a new tab. It used to work OK with this but not with a recent installation (WP 6.6.1).
28 Marzo 2024
…that you updated the plugin. I use it everywhere. When Wordpress notified me that it was no longer being updated I panicked. Looked everywhere for a replacement. Nada. Even contacted a paid plugin I use to see if they would duplicate it. This plugin does exactly what it says it does, without fail. I didn’t give it 5 stars, I gave it ALL the stars.
Leggi tutte le recensioni di 151

Contributi e sviluppo

“Page Links To” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Page Links To” è stato tradotto in 34 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Page Links To” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog

3.3.5

  • Risolto un bug che poteva far sì che le nuove installazioni tentassero costantemente di aggiornare il formato di archiviazione.

3.3.4

  • Bug fixes

3.3.3

  • Add a SlotFill in the Block Editor, for extension.
  • Fix New Tab support in Internet Explorer.

3.3.2

  • Fix a small new tab JS error.

3.3.1

  • Fix WordPress 5.2 Block Editor (plugin will NOT be in its own panel if you’re using WordPress 5.2).

3.3.0

  • Move Block Editor UI into its own panel.
  • Compatibility with Elementor.
  • Allow posts to load in the customizer (used by some front-end editing plugins).
  • Allow the “open in new tab” functionality to be completely disabled with a filter.
  • Make “open in new tab” more reliable.

3.2.2

  • Bug fixes
  • Better compat with custom post types in the Block Editor

3.2.1

  • Bug fixes

3.2.0

  • Block Editor improvements
  • Smaller build

3.1.2

  • Customizer bug fix

3.1.1

  • Block Editor bugfixes

3.1.0

  • Support for the Block Editor (Gutenberg)

3.0.1

  • Fixed a PHP warning caused by some themes

3.0.0

  • Quick page link adding UI
  • External link indicator
  • Short URL copying
  • Short URL display on edit screen

2.11.2

  • Newsletter

2.11.1

  • Restore PHP 5.3 compatibility, broken in 2.11.0

2.11.0

  • Code cleanup

2.10.4

  • New screenshot and assets

2.10.3

  • Fix readme.txt

2.10.2

  • Fix bug in Internet Explorer

2.10.1

  • Version bump

2.10.0

  • Switch to ES6 and Babel from CoffeeScript
  • Remove jQuery as front-end requirement
  • Bump supported version

2.9.10

  • Bump supported version

2.9.9

  • Back out jQuery protection code that causes issues on some sites

2.9.8

  • Added a Russian translation
  • Maintain a reference to WordPress’ jQuery version
  • Modernize build tools

2.9.6

  • Fixed an issue with redirects that have @ in the URL
  • Fixed issues with setting and displaying custom URLs for attachments

2.9.5

  • Made relative URLs absolute in redirects
  • Fixed a potential PHP warning
  • Registered the metadata fields for better XML-RPC integration

2.9.4

  • Add Hungarian translation.

2.9.3

  • Only rely on an internal cache for wp_list_pages() processing, and time-limit the cache.
  • Work around some weird edge cases

2.9.2

  • Restore WordPress 3.4.x functionality.

2.9.1

  • Fix a redirection bug in 2.9

2.9

  • Respect “open in new tab” setting in more custom situations, like custom loops and widgets.
  • Add unit tests
  • Massive code refactoring
  • Added translations for: Spanish, Catalan, French.

2.8

  • Added translations for: Swedish, Hebrew.

2.7.1

  • Fix an array bug

2.7

  • Fix a PHP notice
  • Use JS to open links in an external window, even outside of nav menus
  • Completely revamped UI
  • Several translations

2.6

  • Proper linking for custom post types (insead of just a 301).
  • Fixed a bug that prevented links from opening in a new window.
  • Notifies people when they are editing content that uses this plugin.
  • Removed the option to set redirection type. Always 301, now.
  • Removed some PHP4 and WP 2.8 back compat stuff.

2.5

  • Allow all show_ui post types to use the meta box.
  • Introduce a filter so a plugin can remove a post type from the list.
  • Target filtering for WordPress nav menus.
  • Silence some PHP notices. Props Ross McKay, Bill Erickson.

2.4.1

  • Fixed typo that was preventing 302 redirects from working. props Ryan Murphy.
  • Fixed a random PHP notice

2.4

  • Rewrote using Singleton best practices
  • Fixed a regex bug that could break current menu highlighting. props skarab

2.3

  • Fixed a bug with current menu item highlighting

2.2

  • Cleanup
  • compatibility tweaks to interoperate with a few other plugins
  • prompt http:// and auto-add it if a URL starts with “www.”

2.1

  • WordPress MU compatibility for when switch_to_blog() is used… it now uses $blog_id to keep their caches from stomping on each other

2.0

  • Allow one-character URLs so that things like “#” (dummy link) are possible

1.9

  • Fixed “open in new window” functionality