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

Making WordPress.org noreply at wordpress.org
Thu Aug 31 21:03:22 UTC 2017


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

 * owner:   => coreymckrill
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"5854"]:
 {{{
 #!CommitTicketReference repository="" revision="5854"
 WordCamp Sponsors: Additional parameters for the shortcode

 This adds or updates the following parameters in the `[sponsors]`
 shortcode:

 **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. Other values will omit the
 title.

 **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
 be shown.

 **excerpt_length**

 Sets the number of words to be used in the excerpt (default is 55).

 Props Kau-Boy
 Fixes #1751
 }}}

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


More information about the wp-meta mailing list