Version Description
- Strip shortcodes from excerpts
- Add ellipses after excerpts
- Fix some broken text domains for translations
Download this release
Release Info
Developer | edge22 |
Plugin | WP Show Posts |
Version | 0.8 |
Comparing to | |
See all releases |
Code changes from version 0.7 to 0.8
- admin/metabox.php +7 -7
- readme.txt +11 -1
- wp-show-posts.php +3 -3
admin/metabox.php
CHANGED
@@ -187,7 +187,7 @@ function wpsp_register( $butterbean, $post_type ) {
|
|
187 |
array(
|
188 |
'type' => 'checkbox',
|
189 |
'section' => 'wpsp_posts',
|
190 |
-
'label' => __( 'Pagination','wp-show-posts
|
191 |
'description' => __( 'Pagination should only be used if your posts are the only thing in the content area to prevent duplicate content issues.','wp-show-posts' ),
|
192 |
'attr' => array( 'id' => 'wpsp-pagination' )
|
193 |
)
|
@@ -413,7 +413,7 @@ function wpsp_register( $butterbean, $post_type ) {
|
|
413 |
array(
|
414 |
'type' => 'checkbox',
|
415 |
'section' => 'wpsp_content',
|
416 |
-
'label' => __( 'Include title','wp-show-posts
|
417 |
'attr' => array( 'id' => 'wpsp-include-title' )
|
418 |
)
|
419 |
);
|
@@ -456,7 +456,7 @@ function wpsp_register( $butterbean, $post_type ) {
|
|
456 |
array(
|
457 |
'type' => 'checkbox',
|
458 |
'section' => 'wpsp_post_meta',
|
459 |
-
'label' => __( 'Include author','wp-show-posts
|
460 |
'attr' => array( 'id' => 'wpsp-include-author' )
|
461 |
)
|
462 |
);
|
@@ -496,7 +496,7 @@ function wpsp_register( $butterbean, $post_type ) {
|
|
496 |
array(
|
497 |
'type' => 'checkbox',
|
498 |
'section' => 'wpsp_post_meta',
|
499 |
-
'label' => __( 'Include date','wp-show-posts
|
500 |
'attr' => array( 'id' => 'wpsp-include-date' )
|
501 |
)
|
502 |
);
|
@@ -536,7 +536,7 @@ function wpsp_register( $butterbean, $post_type ) {
|
|
536 |
array(
|
537 |
'type' => 'checkbox',
|
538 |
'section' => 'wpsp_post_meta',
|
539 |
-
'label' => __( 'Include terms','wp-show-posts
|
540 |
'attr' => array( 'id' => 'wpsp-include-terms' )
|
541 |
)
|
542 |
);
|
@@ -602,7 +602,7 @@ function wpsp_register( $butterbean, $post_type ) {
|
|
602 |
array(
|
603 |
'type' => 'checkbox',
|
604 |
'section' => 'wpsp_query_args',
|
605 |
-
'label' => __( 'Exclude current','wp-show-posts
|
606 |
'attr' => array( 'id' => 'wpsp-exclude-current' )
|
607 |
)
|
608 |
);
|
@@ -654,7 +654,7 @@ function wpsp_register( $butterbean, $post_type ) {
|
|
654 |
array(
|
655 |
'type' => 'checkbox',
|
656 |
'section' => 'wpsp_query_args',
|
657 |
-
'label' => __( 'Ignore sticky posts','wp-show-posts
|
658 |
'attr' => array( 'id' => 'wpsp-ignore-sticky-posts' )
|
659 |
)
|
660 |
);
|
187 |
array(
|
188 |
'type' => 'checkbox',
|
189 |
'section' => 'wpsp_posts',
|
190 |
+
'label' => __( 'Pagination','wp-show-posts' ),
|
191 |
'description' => __( 'Pagination should only be used if your posts are the only thing in the content area to prevent duplicate content issues.','wp-show-posts' ),
|
192 |
'attr' => array( 'id' => 'wpsp-pagination' )
|
193 |
)
|
413 |
array(
|
414 |
'type' => 'checkbox',
|
415 |
'section' => 'wpsp_content',
|
416 |
+
'label' => __( 'Include title','wp-show-posts' ),
|
417 |
'attr' => array( 'id' => 'wpsp-include-title' )
|
418 |
)
|
419 |
);
|
456 |
array(
|
457 |
'type' => 'checkbox',
|
458 |
'section' => 'wpsp_post_meta',
|
459 |
+
'label' => __( 'Include author','wp-show-posts' ),
|
460 |
'attr' => array( 'id' => 'wpsp-include-author' )
|
461 |
)
|
462 |
);
|
496 |
array(
|
497 |
'type' => 'checkbox',
|
498 |
'section' => 'wpsp_post_meta',
|
499 |
+
'label' => __( 'Include date','wp-show-posts' ),
|
500 |
'attr' => array( 'id' => 'wpsp-include-date' )
|
501 |
)
|
502 |
);
|
536 |
array(
|
537 |
'type' => 'checkbox',
|
538 |
'section' => 'wpsp_post_meta',
|
539 |
+
'label' => __( 'Include terms','wp-show-posts' ),
|
540 |
'attr' => array( 'id' => 'wpsp-include-terms' )
|
541 |
)
|
542 |
);
|
602 |
array(
|
603 |
'type' => 'checkbox',
|
604 |
'section' => 'wpsp_query_args',
|
605 |
+
'label' => __( 'Exclude current','wp-show-posts' ),
|
606 |
'attr' => array( 'id' => 'wpsp-exclude-current' )
|
607 |
)
|
608 |
);
|
654 |
array(
|
655 |
'type' => 'checkbox',
|
656 |
'section' => 'wpsp_query_args',
|
657 |
+
'label' => __( 'Ignore sticky posts','wp-show-posts' ),
|
658 |
'attr' => array( 'id' => 'wpsp-ignore-sticky-posts' )
|
659 |
)
|
660 |
);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpshowposts.com
|
|
4 |
Tags: show posts, display posts shortcode, portfolio, gallery, post columns
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.6.1
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -149,6 +149,11 @@ In most cases, #1 will work fine and is way easier.
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
|
|
|
|
152 |
= 0.7 =
|
153 |
* Prevent direct access to files
|
154 |
* Add prefix to all column classes to avoid conflicts
|
@@ -195,6 +200,11 @@ In most cases, #1 will work fine and is way easier.
|
|
195 |
|
196 |
== Upgrade Notice ==
|
197 |
|
|
|
|
|
|
|
|
|
|
|
198 |
= 0.7 =
|
199 |
* Prevent direct access to files
|
200 |
* Add prefix to all column classes to avoid conflicts
|
4 |
Tags: show posts, display posts shortcode, portfolio, gallery, post columns
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.6.1
|
7 |
+
Stable tag: 0.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 0.8 =
|
153 |
+
* Strip shortcodes from excerpts
|
154 |
+
* Add ellipses after excerpts
|
155 |
+
* Fix some broken text domains for translations
|
156 |
+
|
157 |
= 0.7 =
|
158 |
* Prevent direct access to files
|
159 |
* Add prefix to all column classes to avoid conflicts
|
200 |
|
201 |
== Upgrade Notice ==
|
202 |
|
203 |
+
= 0.8 =
|
204 |
+
* Strip shortcodes from excerpts
|
205 |
+
* Add ellipses after excerpts
|
206 |
+
* Fix some broken text domains for translations
|
207 |
+
|
208 |
= 0.7 =
|
209 |
* Prevent direct access to files
|
210 |
* Add prefix to all column classes to avoid conflicts
|
wp-show-posts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Show Posts
|
4 |
Plugin URI: https://wpshowposts.com
|
5 |
Description: WP Show Posts allows you to list posts (from any post type) anywhere on your site. This includes WooCommerce products or any other post type you might have! Check out the pro version for even more features at https://wpshowposts.com.
|
6 |
-
Version: 0.
|
7 |
Author: Tom Usborne
|
8 |
Author URI: https://tomusborne.com
|
9 |
License: GNU General Public License v2 or later
|
@@ -15,7 +15,7 @@ Text Domain: wp-show-posts
|
|
15 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
16 |
|
17 |
// Define the current version
|
18 |
-
define( 'WPSP_VERSION', 0.
|
19 |
|
20 |
// Add defaults
|
21 |
require_once trailingslashit( plugin_dir_path( __FILE__ ) ) . 'inc/defaults.php';
|
@@ -410,7 +410,7 @@ function wpsp_display( $id )
|
|
410 |
// The excerpt or full content
|
411 |
if ( 'excerpt' == $content_type && $excerpt_length && ! $more_tag && 'none' !== $content_type ) : ?>
|
412 |
<div class="wp-show-posts-entry-summary" itemprop="text">
|
413 |
-
<?php echo wp_trim_words( get_the_content(), $excerpt_length, '' ); ?>
|
414 |
</div><!-- .entry-summary -->
|
415 |
<?php elseif ( ( 'full' == $content_type || $more_tag ) && 'none' !== $content_type ) : ?>
|
416 |
<div class="wp-show-posts-entry-content" itemprop="text">
|
3 |
Plugin Name: WP Show Posts
|
4 |
Plugin URI: https://wpshowposts.com
|
5 |
Description: WP Show Posts allows you to list posts (from any post type) anywhere on your site. This includes WooCommerce products or any other post type you might have! Check out the pro version for even more features at https://wpshowposts.com.
|
6 |
+
Version: 0.8
|
7 |
Author: Tom Usborne
|
8 |
Author URI: https://tomusborne.com
|
9 |
License: GNU General Public License v2 or later
|
15 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
16 |
|
17 |
// Define the current version
|
18 |
+
define( 'WPSP_VERSION', 0.8 );
|
19 |
|
20 |
// Add defaults
|
21 |
require_once trailingslashit( plugin_dir_path( __FILE__ ) ) . 'inc/defaults.php';
|
410 |
// The excerpt or full content
|
411 |
if ( 'excerpt' == $content_type && $excerpt_length && ! $more_tag && 'none' !== $content_type ) : ?>
|
412 |
<div class="wp-show-posts-entry-summary" itemprop="text">
|
413 |
+
<?php echo strip_shortcodes( wp_trim_words( get_the_content(), $excerpt_length, apply_filters( 'wpsp_ellipses', '...' ) ) ); ?>
|
414 |
</div><!-- .entry-summary -->
|
415 |
<?php elseif ( ( 'full' == $content_type || $more_tag ) && 'none' !== $content_type ) : ?>
|
416 |
<div class="wp-show-posts-entry-content" itemprop="text">
|