diff --git a/admin/partials/display-medium-posts-admin-display.php b/admin/partials/display-medium-posts-admin-display.php index 32767e5..d211993 100755 --- a/admin/partials/display-medium-posts-admin-display.php +++ b/admin/partials/display-medium-posts-admin-display.php @@ -18,31 +18,60 @@

-

How to use

- -

WordPress Display Medium Posts plugin displays the latests posts from a specified user.

- -

To use this plugin on any page/post, add shortcode with user handle e.g [display_medium_posts handle="@username"]

- -

Advanced Usage and Customization

-

There are additional features that can be implemented using Display Medium Posts :

- - -

- An example of a full use of the plugin is as follows:
- - [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] - -

-

-

-

If this plugin has helped you, don't hesitate to star the Github repo. Cheers :)

-

+
+
+
+

How to use

+
+

WordPress Display Medium Posts plugin displays the latests posts from a specified user or publication.

+ +

For users

+ +

To use this plugin on any page/post, add shortcode with user handle e.g
[display_medium_posts handle="@username"]

+ +

For Publications

+

To use this plugin to fetch publication posts, you'd have to get the publication handle from the url as shown https://medium.com/devcenter. devcenter 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.

+

To use this plugin on any page/post, add shortcode with publication handle and set "publication" to true e.g
[display_medium_posts handle="username" publication=true]

+ + NB: Do not add "@" for publication handles + +

Advanced Usage and Customization

+

There are additional features that can be implemented using Display Medium Posts :

+
    +
  • handle: This is the user's medium handle e.g @acekyd or publication handle e.g devcenter (Required)
  • +
  • publication: If you would like to show the posts of a publication's specified handle, set this value to true. Default value is false
  • +
  • default_image: This is the url of default image that should show when post doesn't have a featured image e.g http://i.imgur.com/p4juyuT.png
  • +
  • display: This is the amount of posts that should be displayed at a time e.g display=3
  • +
  • offset: This is used when you don't want to display the most recent posts. You can specify the offset to skip the first number of items specified. Default is 0 e.g offset=2
  • +
  • total: This is used to specify the amount of posts to fetch. Maximum is 10. This is also useful if you just want to display a single item e.g total=1
  • +
  • list: If you would like to show the posts in a list instead of a carousel, set this value to true. Default value is false
  • +
+
+
+
+ +
+
+

More!

+
+

+ An example of a full use of the plugin is as follows:

+ User -

+ + [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] + +

+ Publication -

+ + [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] + +

+

+

+

If this plugin has helped you, don't hesitate to star the Github repo. If you'd like to reach out to me or donate to this plugin, send me a tweet at @Ace_KYD. Cheers :)

+

+
+
+
+
\ No newline at end of file