Skip to content

Commit 0ffdcc2

Browse files
committed
Update admin page
1 parent 5b4f67c commit 0ffdcc2

File tree

1 file changed

+10
-32
lines changed

1 file changed

+10
-32
lines changed

admin/partials/display-medium-posts-admin-display.php

+10-32
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
1717
<div class="wrap">
1818

19-
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
19+
<h2><?php echo esc_html(get_admin_page_title()); ?></h2>
2020

2121
<div class="metabox-holder">
2222
<div class="postbox-container" style="width: 55%;margin-right: 10px;">
@@ -25,14 +25,10 @@
2525
<div class="inside">
2626
<p>WordPress Display Medium Posts plugin displays the latests posts from a specified user or publication.</p>
2727

28-
<h2>For user accounts</h2>
29-
30-
<p>To use this plugin on any page/post, add shortcode with <strong>user</strong> handle e.g <br><span style="color:red">[display_medium_posts handle="@username"]</span></p>
31-
32-
<h4>For Publications</h4>
33-
<p>To use this plugin to fetch publication posts, you'd have to get the publication handle from the url as shown https://medium.com/<strong>devcenter</strong>. <strong>devcenter</strong> is the publication's handle. If you are using a custom domain, you should still be able to look up your unique handle in settings.</p>
34-
<p>To use this plugin on any page/post, add shortcode with <strong>publication</strong> handle and set "publication" to true e.g<br> <span style="color:red">[display_medium_posts handle="username" publication=true]</span></p>
28+
<h2>For user accounts and publications</h2>
3529

30+
<p>To use this plugin on any page/post, add shortcode with <strong>user</strong> handle e.g <br><span style="color:red">[display_medium_posts handle="@username"]</span> or <strong>publication</strong> handle without the "@" e.g<span style="color:red">[display_medium_posts handle="morpheus-network"]</span> </p>
31+
<p>If you are using a custom domain, you should still be able to look up your unique handle in settings.</p>
3632
<i>NB: Do not add "@" for publication handles</i>
3733

3834
<h2>Advanced Usage and Customization</h2>
@@ -51,15 +47,7 @@
5147
<b>handle</b>
5248
</td>
5349
<td>
54-
This is the user's medium handle e.g <strong>@acekyd</strong> or publication handle e.g <strong>devcenter</strong> <i>(Required)</i>
55-
</td>
56-
</tr>
57-
<tr>
58-
<td>
59-
<b>publication</b>
60-
</td>
61-
<td>
62-
If you would like to show the posts of a publication's specified handle, set this value to true. Default value is false
50+
This is the user's medium handle e.g <strong>@acekyd</strong> or publication handle e.g <strong>morpheus-network</strong> <i>(Required)</i>
6351
</td>
6452
</tr>
6553
<tr>
@@ -110,14 +98,6 @@
11098
This is used to set a custom tag for the article titles, such as H2, H3, etc. Default value is 'p' e.g title_tag="p"
11199
</td>
112100
</tr>
113-
<tr>
114-
<td>
115-
<b>tag</b>
116-
</td>
117-
<td>
118-
This is used to filter Medium posts by tag. E.g tag=learning. A user <b>handle</b> is still required for generating the link but the posts are fetched globally from Medium.
119-
</td>
120-
</tr>
121101
<tr>
122102
<td>
123103
<b>date_format</b>
@@ -139,12 +119,12 @@
139119
An example of a full use of the plugin is as follows:<br><br>
140120
<strong>User - </strong><br><br>
141121

142-
[display_medium_posts handle="@acekyd" default_image="http://www.acekyd.com/wp-content/uploads/2014/11/IMG_20150731_220116.png" display=4 offset=2 total=10 list=false title_tag="h2"]
122+
[display_medium_posts handle="@acekyd" default_image="http://www.acekyd.com/wp-content/uploads/2014/11/IMG_20150731_220116.png" display=4 offset=2 total=10 list=false title_tag="h2"]
143123

144124
<br><br>
145125
<strong>Publication - </strong><br><br>
146126

147-
[display_medium_posts handle="devcenter" publication=true default_image="http://www.acekyd.com/wp-content/uploads/2014/11/IMG_20150731_220116.png" display=4 offset=2 total=10 list=false title_tag="h2"]
127+
[display_medium_posts handle="morpheus-network" default_image="http://www.acekyd.com/wp-content/uploads/2014/11/IMG_20150731_220116.png" display=4 offset=2 total=10 list=false title_tag="h2"]
148128

149129
</p>
150130
<br><br>
@@ -160,13 +140,11 @@
160140
<hr>
161141
<p>
162142
<h4 style="color:red">
163-
If you'd like to reach out to me or donate to this plugin, send me a tweet at <a href="http://twitter.com/ace_kyd">@Ace_KYD</a> or donate via <a href="https://www.paypal.me/adewaleabati" target="_blank">PayPal</a>. Cheers :)</h4>
143+
If you'd like to reach out to me or donate to this plugin, send me a tweet at <a href="http://twitter.com/ace_kyd">@Ace_KYD</a> or donate via <a href="https://dashboard.flutterwave.com/donate/optcjuai9jpk" target="_blank">Flutterwave</a>. Cheers :)</h4>
164144

165-
<a href="https://www.paypal.me/adewaleabati" target="_blank">
145+
<!-- <a href="https://www.paypal.me/adewaleabati" target="_blank">
166146
<img src="https://miamibaysidefoundation.org/wp-content/uploads/2016/07/donate-paypal-1x.png">
167-
</a>
168-
169-
147+
</a> -->
170148
</p>
171149
</div>
172150
</div>

0 commit comments

Comments
 (0)