[wp-meta] [Making WordPress.org] #1751: Allow Sponsor Shortcode to show excerpt, image only, or the_content
Making WordPress.org
noreply at wordpress.org
Mon Jun 6 16:20:17 UTC 2016
#1751: Allow Sponsor Shortcode to show excerpt, image only, or the_content
-------------------------------------+--------------------------
Reporter: Kenshino | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: WordCamp Site & Plugins | Keywords: dev-feedback
-------------------------------------+--------------------------
Right now the sponsor shortcode shows the_content and the title itself is
not linked (check https://2016.singapore.wordcamp.org/sponsors/, you'll
have to inspect to see the hidden title output)
The problem with this is that some sponsors are gonna have huge chunks of
text and some aren't. So it's gonna look unequal, plus no one reads
through that amount of text.
An excerpt will give us a good control of what to display on the archive
page for sponsors. And the single page will allow people who actually want
to read about them - to ... well do so.
I propose that the shortcode should do the following
* Allow excerpt=$length (length being a character limit that possibly
hooks into excerpt_length filter, and when this is on, the_content is not
ran)
* Allow both excerpts and content to be hidden to only show the sponsor
image.
If it makes sense, I'll happily submit a patch :)
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1751>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list