Skip to content

Commit 18af5b4

Browse files
committed
patch -> display posts in list format
1 parent 1278db1 commit 18af5b4

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

.DS_Store

6 KB
Binary file not shown.

README.txt

+5
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ Nothing at the moment.
3939
== Screenshots ==
4040
1. Add shortcode to posts/page
4141
2. Displayed latest medium posts on page.
42+
3. Allowed users to choose between carousel or list displays.
4243

4344
== Changelog ==
45+
= Version 2.0.2 =
46+
47+
* Choose to display posts in list format
48+
4449
= Version 2.0.0 =
4550

4651
* Specify tags and css classes to allow users customize post display

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@
3232
<li><b>display:</b> This is the amount of posts that should be displayed at a time e.g display=3</li>
3333
<li><b>offset:</b> 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</li>
3434
<li><b>total:</b> 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</li>
35+
<li><b>list:</b> If you would like to show the posts in a list instead of a carousel, set this value to true. Default value is false
3536
</ul>
3637

3738
<p>
3839
An example of a full use of the plugin is as follows:<br>
3940
<b>
40-
[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]
41+
[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]
4142
</b>
4243
</p>
43-
44+
<br><br>
45+
<p>
46+
<h4 style="color:red">If this plugin has helped you, don't hesitate to star the <a href="http://www.github.com/acekyd/display-medium-posts/" target="_blank">Github repo</a>. Cheers :)</h4>
47+
</p>
4448
</div>

assets/screenshot-3.png

87.3 KB
Loading

display-medium-posts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function initializeOwl(count) {
155155
<?php
156156
if(!$list)
157157
{
158-
echo '<script>initializeOwl(<?php echo $display; ?>);</script>';
158+
echo '<script>initializeOwl('.$display.');</script>';
159159
}
160160
?>
161161
<?php

0 commit comments

Comments
 (0)