-
Notifications
You must be signed in to change notification settings - Fork 2
/
readme.txt
165 lines (109 loc) · 5.5 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
=== VK Link Target Controller ===
Contributors: vektor-inc,kurudrive,dswebstudio,bizvektor,nc30,catherine8007
Donate link:
Tags: redirection,link,recent posts,list,page,post
Requires at least: 5.3
Tested up to: 6.6
Stable tag: 1.7.6.0
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Redirect your visitors to another page than the post content when they click on the post title.
== Description ==
= 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/kurudrive/vk-link-target-controller](https://github.com/kurudrive/vk-link-target-controller)
Latest plugin version is always on GitHub.
== Installation ==
= Installation and default settings =
1. Install the plugin and activate it like other WordPress plugins.
2. Go to VK Link Target Controller settings screen (`Settings > Link Target Controller`).
3. Select the post types where you want to use VK Link Target Controller.
Notes:
* By default **none of your post types are selected**
* VK Link Target Controller supports custom post types
= Add a link for redirection =
VK Link Target Controller adds a meta box to your posts edit screen under the main content editing area.
If you need a redirection for this post just fill in the field with the destination url.
VK Link Target Controller supports both
* external links like `http://bizvektor.com/en/` (will link to `http://bizvektor.com/en/`)
* internal links like `/theme-documentation/bizvektor-quick-start/` (will link to `http://thisdomain.com/theme-documentation/bizvektor-quick-start/`)
For external (or absolute) urls both http:// and trailing slash are optional.
For internal (relative) urls you need to add a slash "/" at the beginning as shown on example above (see also Screenshots).
If you want the link to open in a new window then check the corresponding option.
== Frequently Asked 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 id on the `<a>` parent element.
Your theme probably has it if it follows the WordPress Theme recommendations.
Example:
`
<div class="post-item post-block front-page-list" id="post-<?php the_ID(); ?>">
<a href="<?php the permalink(); ?>">
<?php the_title(); ?>
</a>
</div>
`
= 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.
== Screenshots ==
1. Localisation for VK Link Target Controller settings page.
2. VK Link Target Controller settings page. Choose the post types where the plugin should be activated.
3. An absolute url to an external link with open the link in a separate window option selected (both http:// and trailing slash are optional).
4. A relative url that refer to a page of your website: **note slash "/" at the beginning**.
== Changelog ==
= 1.7.6 =
* [ Bug fix ] Handle links other than the_permalink.
= 1.7.5 =
* [ Other ] Delete unnecessary files
= 1.7.4 =
* [ Bug fix ] Fixed an issue that occurred in a PHP 8.0 or higher environment.
* [ Bug fix ] Fixed an issue where the feature to open in a new window did not work.
= 1.7.2 =
* [ Other ] Update admin settingpage library 2.6.0
= 1.7.1 =
* [ Other ] Update admin settingpage library 2.5.0
= 1.7.0 =
* [ Other ] Update admin settingpage library 2.4.0
= 1.6.4 =
* Fix default setting from all off to all on.
= 1.6.3 =
* Fix Screenshots
= 1.6.0 =
* Add setting link
= 1.5.4 =
* Update VK Admin Library
= 1.5.3 =
* Update VK Admin Library
= 1.5.2 =
* Update VK Admin Library
= 1.5.1 =
* Update VK Admin Library
= 1.2 =
* Support link to the file.
= 1.1 =
* Support post type "page".
= 1.0 =
* Publication on WordPress.org
* Stable version.
== Upgrade Notice ==
= 1.0.1 =
* [ bug fix ] Remove robots noindex,nofollow from front-page header.