[wp-meta] [Making WordPress.org] #1751: Allow Sponsor Shortcode to show excerpt, image only, or the_content

Making WordPress.org noreply at wordpress.org
Sun Aug 20 14:35:15 UTC 2017


#1751: Allow Sponsor Shortcode to show excerpt, image only, or the_content
--------------------------------------------------+------------------
 Reporter:  Kenshino                              |       Owner:
     Type:  enhancement                           |      Status:  new
 Priority:  normal                                |   Milestone:
Component:  WordCamp Site & Plugins               |  Resolution:
 Keywords:  dev-feedback has-patch needs-testing  |
--------------------------------------------------+------------------
Changes (by Kau-Boy):

 * keywords:  dev-feedback needs-patch => dev-feedback has-patch needs-
               testing


Comment:

 I am currently at WordCamp Brightin Contributor Day and we found out, that
 the image is not using an alt attribute. So when you hide the content on
 the listings page, as we did for WordCamp Europe, screen readers will see
 no text (except headlines with sponsor levels) on the page. I've written a
 patch to add the sponsors title as the alt attributes text (1751-sponsors-
 alt.diff).

 I also though about some of the points mentioned here about using excerpts
 instead of the full content. SO I came up with an idea, where you can be
 more fexible in how to design the page and also provide links to the
 single sponsors posts.

 Currently, there is onyly one attribute `link` with the values `none`
 (default) and `website` which will link to the sponsors external website.
 There is no option to link to the single sponsors post with the shortcode.

 My second patch will add some new attributes (or values):

 '''link'''

 The default value `none` will not link the title and logo. The current
 value `website` will link both to the external sponsor website. The new
 value `post` will link both to the single sponsors post.

 '''title'''

 The default value `visible` will, show the `h3` with the sponsors title,
 linked accordingly to the `link` attribute

 '''content'''

 The default value `full` will print the content. The value `excerpt` will
 print the first 55 words of the content, adding a "continue reading" (with
 hidden screen reader title) at the end. Any other value, like `none`, will
 hide the content, so only the logo and/or title will the shown.

 '''excerpt_length'''

 Sets the words to be used in the excerpt.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1751#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list