sandywp / plugins / vk-link-target-controller

VK Link Target Controller

5.0 out of 5 stars. 5.0 2 reviews

Redirect your visitors to another page than the post content when they click on the post title.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.10.5 30,000+ installs WP 5.3+

your-sandbox.sandywp.com/wp-admin
VK Link Target Controller running inside a SandyWP sandbox

What you get inside

4 screens
  • Localisation for VK Link Target Controller settings page.

  • VK Link Target Controller settings page. Choose the post types where the plugin should be activated.

  • An absolute url to an external link with open the link in a separate window option selected (both http:// and trailing slash are optional).

  • A relative url that refer to a page of your website: note slash "/" at the beginning.

About this plugin

Plugin presentation

VK Link Target Controller enables to redirect your visitors to another page than the post content when they click on the post title that displays on the Recent Posts list or the Archives Page.

Example of use

Let’s say you have a new product for sale on eBay or Etsy.
You find it annoying to write a complete post entry on your blog (or WordPress powered website) to explain you have a new product to sell there and would like your visitors to access directly the product page.

With VK Link Target Controller your visitors will access directly that product page when clicking on the post title.
Fast redirection to the product you want to sell!.

GitHub repository

VK Link Target Controller official repository on GitHub.
https://github.com/vektor-inc/vk-link-target-controller
Latest plugin version is always on GitHub.

Questions

Are custom post types supported?

Yes.

Where do I add my link?

You can add your link for redirection on the post edit screen.
Just look for the “URL to redirect to” section under the main edit screen.

What are the options for the link?

The plugin supports both external and internal links.
You can choose to open the links in a new window if you need.
Please refer to the Installation tab or the Screenshots tab for more information.

Can I add URLs with non-Latin characters?

VK Link Target Controller supports Japanese in URLs so probably you can add other non-Latin characters too.

My link won’t open on a new window.

VK Link Target Controller adds a filter on the the_permalink() WordPress function, which means the redirection won’t work if your theme uses another function, for example get_permalink() to display the links.
In order to have the link opened in a new window VK Link Target Controller needs a theme with the post id as class on the <a> parent element.

Your theme probably has it if it follows the WordPress Theme recommendations.

Example A:

<div class="post-item post-block front-page-list post-<?php the_ID(); ?>" id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink(); ?>">
        <?php the_title(); ?>
    </a>
</div>

Example B:

<div class="<?php echo esc_attr( implode( ' ', get_post_class() ) ); ?>" id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink(); ?>">
        <?php the_title(); ?>
    </a>
</div>

get_post_class() returns a value that includes the post ID.

Any chance to get the plugin translated in my language?

For now the plugin is available in English and Japanese only.
But we have a .pot file available so feel free to translate it in your language if you have some time.

5.0

2 reviews

  • 5 ★ 2
  • 4 ★ 0
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 0

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

  • Custom Post Type Permalinks

    4.8 · 200K+ installs

    Edit the permalink of custom post type.

  • Page Links To

    4.9 · 100K+ installs

    Lets you make a WordPress page (or port or other content type) link to a URL of your choosing (on your site, or on another site),…

  • Custom Permalinks

    4.1 · 100K+ installs

    A powerful WordPress plugin for full URL control. Set custom permalinks, auto-redirects, and use dynamic tags for ideal site…

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.