Site logo

Archived topic

Add Featured Posts Section to All Archives

20 replies · Started by Lewis on July 8, 2022

Viewing posts 16–21 of 21

Sorry what have you actually changed? Nothing on the front end seems to have changed for me? The featured posts are still not being filtered by a tag?

Hurrah! This appears to have worked!
You say you edited the plugin? Will this edit disappear when it updates though?

For reference, the line I modified is this line: https://github.com/tomusborne/wp-show-posts/blob/master/wp-show-posts.php#:~:text=%24query%20%3D%20new%20WP_Query(%20apply_filters(%20%27wp_show_posts_shortcode_args%27%2C%20%24args%20)%20)%3B

I replaced it with this:

$query = new WP_Query( apply_filters( 'wp_show_posts_shortcode_args', $args, $settings) );

It won’t since latest version of WPSP, version 1.2.0 alpha already has that code.

If you update WPSP to this version: https://wpshowposts.com/wp-show-posts-1-2-0/, it should have that code.

Hope this clarifies!

Perfect, thanks!

You’re welcome Lewis!

This archived topic is closed to new replies.