January 29, 2017 at 10:50 pm #1528
Just setting up a new site with GP/GP-P and WPSP (heaven forbid, I am not using a page builder with this one! LOL)
In one post I added a standard WP gallery and all works fine. However, I notice that in the WPSP list that is displayed, it shows the WP gallery shortcode in the excerpt. Is there any way to have this not be displayed in the excerpt other that truncating the excerpt, as I have done in the meantime.
LyleJanuary 30, 2017 at 12:14 am #1530
Hmm, shortcodes shouldn’t display if the excerpt is set (with no more tag etc..).
What version of WPSP are you running?
Can you link me to the page?January 30, 2017 at 11:13 am #1540
Here is the page in question:
Version 1.0 from the WP repo, no Pro installed on this site.
I tried the usual t/s method of deactivating all plugins except WPSP and still the same. Tried removing the Read more as well; still shows.January 31, 2017 at 2:54 pm #1554January 31, 2017 at 3:26 pm #1555
Yep, tried the deactivate all plugins except WPSP route, but thanks to the screencast of your post, I found out what is “going on” and I am not sure if it’s a WPSP or a WP thing.
This is what I have on that page for the gallery, which shows the shortcode in the excerpt:
[gallery link="file" columns="2" size="full" ids="199,198,197,196,195,194,193,192,191,190,189,188,187"]
When I get rid of the options, and just have this, it “works”, that is, the shortcode is not displayed in the excerpt:
Hmmm … 🙂 But I would like to use the options 🙂February 1, 2017 at 1:46 am #1556
UPDATE: I bumped up the Excerpt count to 35 from the default 30 and the shortcode is gone! 🙂
Note that before I did the above, I switched to WP 2016 (deactivated GP-P) and it was the same thing. So not sure if this is still something with WPSP, but in the meantime, it’s working for this site so I’ll mark this Resolved 🙂February 1, 2017 at 8:56 pm #1561
So weird, I can’t get it to happen at all, even with all of the options.
The function itself has a function in it to strip all shortcodes, so I’m not sure how it’s happening for you: https://github.com/tomusborne/wp-show-posts/blob/1.0/inc/functions.php#L18
You must be logged in to reply to this topic.