Site logo

Archived topic

Reusable WP Show Post

7 replies · Started by Butch Pornebo on February 13, 2021

Viewing posts 1–8 of 8

Anybody here can help a bit in WP Show Post Pro?

I know. I already submitted a ticket over there BUT they typically answer after 24 hours. Not sure if they are checking it on a regular basis and its the weekend too.

However, I do need to resolve this for a client.

So if anybody can chime in it will be much appreciated.

Anyway ....

How can I reuse a WSP List?

Let’s say WSP List with ID=1 that is defined to pull out the post from category-a ONLY.

[wp_show_posts id=”1″]

But I want to use the same definition but pull out the post from category-b.

Is it possible to override that on the shortcode by using a a pre-defined parameter within WSP?

[wp_show_posts id=”1″ category=”category-a”]

Are there other parameters that can be overridden in the shortcode?

Thank you

You're welcome

was wondering if there is a list of parameters that can be overridden. Instead of opening a ticket all the time just to find out the parameter names. Because I can already see that I'll probably be going to override the other parameters.

Hi there,

We've yet to create a documentation for the list of parameters, the file is available for public as found here - https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/wp-show-posts.php#L161

All the $args[] can be overwritten. Values within $tax_args can be overwritten as well - https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/wp-show-posts.php#L247 - as all args merge into one here - https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/wp-show-posts.php#L258 - before being added to the shortcode args anyway. - https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/wp-show-posts.php#L383 -

thanks. the assist is highly appreciated

No problem. :)

This archived topic is closed to new replies.