{"id":1415,"date":"2022-11-21T11:28:06","date_gmt":"2022-11-21T16:28:06","guid":{"rendered":"http:\/\/wpdocs.bu.edu\/cds\/?page_id=1415"},"modified":"2023-06-26T10:25:14","modified_gmt":"2023-06-26T14:25:14","slug":"bu-stats-plugin","status":"publish","type":"page","link":"https:\/\/wpdocs.bu.edu\/cds\/custom-features-for-your-theme\/bu-stats-plugin\/","title":{"rendered":"Statistical Value Conveyed"},"content":{"rendered":"<p>Paramount for site visitors, statistics aid in reinforcing content and value with factual evidence. The BU Stats plug-in for CDS, provides a way to conveniently add, manage and display of a variety of statistics (some animated) in flexible ways using a WordPress post type.<\/p>\n<p>BU Stats can be used to inform and showcase the benefit of a value proposition in the context of a landing page, and present data from a project or initiative in the context of a default page template.<\/p>\n<p><strong>The documentation here is an overview of the plugin with contextual demonstration within the CDS theme. Additional, <a href=\"https:\/\/wpdocs.bu.edu\/bu-stats\/\">specific documentation for the plugin itself can be found here<\/a>.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_1427\" aria-describedby=\"caption-attachment-1427\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.13.52-PM-1024x472.png\" alt=\"A modified screengrab demonstrating Statistics in a BU Landing Page curated section (left) and in context with content on a Default Page Template (right).\" width=\"1024\" height=\"472\" class=\"wp-image-1427 size-large\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.13.52-PM-1024x472.png 1024w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.13.52-PM-300x138.png 300w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.13.52-PM-768x354.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.13.52-PM-1536x708.png 1536w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.13.52-PM-2048x944.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-1427\" class=\"wp-caption-text\">A modified screengrab demonstrating Statistics in a BU Landing Page curated section (left) and in a Default Page Template using a shortcode (right).<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Each post-type-based statistic consists of input fields such as:<\/p>\n<ul>\n<li><strong>Post Title<\/strong> \u2014 A field for entering a clear, summarizing title near the top for the Statistic post. This <strong>Post Title<\/strong> will help in referencing and sourcing among All Statistics in the WordPress Admin.<strong><br \/>\nStatistic Type<\/strong> \u2014 The type of statistic to be rendered. <em>See \u201cStat Types\u201d below.<\/em><\/li>\n<li><strong>Theme<\/strong> \u2014 The theme a statistic should take the general appearance of. <em>See \u201cStat Themes\u201d below.<\/em><\/li>\n<li><strong>Title<\/strong> \u2014 An input field for rendering text before the statistic <strong>Value<\/strong> and to provide a title. <em>This field is commonly seen as optional and dependent on the presentation of a stat.<\/em><\/li>\n<li><strong>Value<\/strong> \u2014 Depending on the <strong>Statistic Type<\/strong> chosen, this field will render a few input fields and\/or drop-downs. A fantastic feature of this statistic part is that the primary value can be prefixed\u2020 or suffixed* with a variety of select symbols, abbreviated numerical values, and even units of measure.<\/li>\n<li><strong>Description<\/strong> \u2014 A <em>brief<\/em> summary of the statistical value can be conveyed in this description field.<\/li>\n<li><strong>Image<\/strong> \u2014 An appropriate, representative background image that won&#8217;t steal the focus of the Stat value can be included from the Media Library with this field.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_1424\" aria-describedby=\"caption-attachment-1424\" style=\"width: 569px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/screencapture-id-rj-cms-devl-bu-edu-bu-stats-wp-admin-post-php-2022-11-22-11_35_43-559x1024.png\" alt=\"An example screen shot demonstrating a single Statistic post type and the fields available for input.\" width=\"559\" height=\"1024\" class=\"wp-image-1424 size-large\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/screencapture-id-rj-cms-devl-bu-edu-bu-stats-wp-admin-post-php-2022-11-22-11_35_43-559x1024.png 559w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/screencapture-id-rj-cms-devl-bu-edu-bu-stats-wp-admin-post-php-2022-11-22-11_35_43-164x300.png 164w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/screencapture-id-rj-cms-devl-bu-edu-bu-stats-wp-admin-post-php-2022-11-22-11_35_43-768x1406.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/screencapture-id-rj-cms-devl-bu-edu-bu-stats-wp-admin-post-php-2022-11-22-11_35_43-839x1536.png 839w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/screencapture-id-rj-cms-devl-bu-edu-bu-stats-wp-admin-post-php-2022-11-22-11_35_43.png 872w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><figcaption id=\"caption-attachment-1424\" class=\"wp-caption-text\">An example screen shot of the WordPress Admin demonstrating a single Statistic post type and the fields available for input. In this example, a \u201dNumber\u201d Statistic Type is observed. Note the Prefix and Suffix values \u2014 options for these drop-downs are listed below.<\/figcaption><\/figure>\n<p><small>\u2020Prefixed symbols include: \u201c+\u00a0 \u2013\u00a0 $\u00a0 #\u00a0 =\u00a0 TOP\u201d<br \/>\n<\/small><small>\u2020Suffixed symbols include: \u201c%\u00a0 %+\u00a0 +\u00a0 \u2013\u00a0 $\u00a0 #\u00a0 K\u00a0 K+\u00a0 M\u00a0 M+\u00a0 B\u00a0 B+\u00a0 st\u00a0 nd\u00a0 rd\u00a0 th\u00a0 ft\u00a0 in\u00a0 mm\u00a0 cm\u00a0 m\u00a0 km\u00a0 yd\u00a0 mi\u00a0 sq ft\u00a0 lb\u00a0 oz\u00a0 mg\u00a0 g\u00a0 kg\u00a0 T\u00a0 ml\u00a0 gal\u201d<\/small><\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_1460\" aria-describedby=\"caption-attachment-1460\" style=\"width: 611px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.36.16-PM.png\" alt=\"A screengrab demonstrates an example of two statistics using a background: The statistic on the left uses a light theme while the one on the right uses a dark theme.\" width=\"601\" height=\"394\" class=\"wp-image-1460 size-full\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.36.16-PM.png 601w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.36.16-PM-300x197.png 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><figcaption id=\"caption-attachment-1460\" class=\"wp-caption-text\">An example of two statistics using a background: The statistic on the left uses a light theme, while the one on the right uses a dark theme.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3>Stat Types<\/h3>\n<figure id=\"attachment_1430\" aria-describedby=\"caption-attachment-1430\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.59.34-PM-1024x328.png\" alt=\"\" width=\"1024\" height=\"328\" class=\"size-large wp-image-1430\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.59.34-PM-1024x328.png 1024w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.59.34-PM-300x96.png 300w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.59.34-PM-768x246.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-12.59.34-PM.png 1237w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-1430\" class=\"wp-caption-text\">An example demonstrating different statistic types available, using the Default Theme(see Stat Themes below).<\/figcaption><\/figure>\n<p><em>The types of statistics available (as referenced in the image above) include:<\/em><\/p>\n<ul>\n<li><strong>Number<\/strong> (ex: \u201c<strong>#1<\/strong>, rank among colleges\u201d)<\/li>\n<li><strong>Animated Percentage<\/strong> (ex: \u201c<strong>80%<\/strong>, average success rate\u201d [with an animated circle demonstrating the percentage])<\/li>\n<li><strong>Text<\/strong> (ex: \u201c<strong>Fifteen<\/strong>, Average class size to know your professors better.\u201d)<\/li>\n<li><strong>Dual Value<\/strong> (ex: \u201c<strong>Top 95 of 100%<\/strong> programs for learning.\u201d)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Stat Themes<\/h3>\n<p>Statistic posts come with a dropdown selection for designating a theme for a stat. Presently, there are two options available and each theme adjusts the colors and contrast, depending on which is chosen:<\/p>\n<ul>\n<li><strong>Default Theme<\/strong>, for standard text to offset lighter backgrounds.<\/li>\n<li><strong>Dark Theme<\/strong>, for lighter text to offset darker backgrounds.<\/li>\n<\/ul>\n<figure id=\"attachment_1431\" aria-describedby=\"caption-attachment-1431\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.02.36-PM-1024x656.png\" alt=\"\" width=\"1024\" height=\"656\" class=\"size-large wp-image-1431\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.02.36-PM-1024x656.png 1024w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.02.36-PM-300x192.png 300w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.02.36-PM-768x492.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.02.36-PM.png 1249w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-1431\" class=\"wp-caption-text\">An example of statistic types using the Default and Dark Themes.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2>Managing BU Stats in The Admin<\/h2>\n<h3>Activating The Plug-In \/ Accessing, Adding &amp; Managing Statistic Posts<\/h3>\n<ol>\n<li>\n<h5>From the <a href=\"https:\/\/www.bu.edu\/cds-faculty\/wp-admin\">WordPress Admin dashboard for the theme<\/a>, click on the <a href=\"https:\/\/www.bu.edu\/cds-faculty\/wp-admin\/plugins.php\">Plugins section<\/a> in the sidebar to the left.<\/h5>\n<p><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.32.55-PM.png\" alt=\"\" width=\"680\" height=\"417\" class=\"size-full wp-image-1449 alignnone\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.32.55-PM.png 680w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.32.55-PM-300x184.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/li>\n<li>\n<h5>On the Plugins page: Scroll till you come across BU Stats in the listing.<\/h5>\n<p><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.33.42-PM.png\" alt=\"\" width=\"679\" height=\"412\" class=\"alignnone size-full wp-image-1450\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.33.42-PM.png 679w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.33.42-PM-300x182.png 300w\" sizes=\"(max-width: 679px) 100vw, 679px\" \/><\/li>\n<li>\n<h5>Click on Activate. The page should refresh confirming that the BU Stats plugin is activated.<\/h5>\n<p><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.34.21-PM.png\" alt=\"\" width=\"681\" height=\"416\" class=\"alignnone size-full wp-image-1451\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.34.21-PM.png 681w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.34.21-PM-300x183.png 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/li>\n<li>\n<h5>To access a dedicated area for managing posts of the plugin: click on <a href=\"https:\/\/www.bu.edu\/cds-faculty\/wp-admin\/edit.php?post_type=bu_stat\">the newly created &#8220;Statistics&#8221; section<\/a> in the sidebar to the left. (Note: this link only works once plugin is activated.)<\/h5>\n<p><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.10-PM.png\" alt=\"\" width=\"681\" height=\"415\" class=\"alignnone size-full wp-image-1452\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.10-PM.png 681w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.10-PM-300x183.png 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/li>\n<li>\n<h5>All created Statistic posts are available for quick adding, editing and removing from this Statistics section.<\/h5>\n<p><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.50-PM.png\" alt=\"\" width=\"680\" height=\"474\" class=\"alignnone size-full wp-image-1453\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.50-PM.png 680w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.50-PM-300x209.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>Add a Stat In The Admin<\/h3>\n<ol>\n<li>To create a new statistic post, simply click on &#8220;Add New&#8221;.<br \/>\n<img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.50-PM.png\" alt=\"\" width=\"680\" height=\"474\" class=\"alignnone size-full wp-image-1453\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.50-PM.png 680w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.35.50-PM-300x209.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/li>\n<li>Upon adding a new statistic: enter in a clear title (for admin reference) and begin by selecting the desired <strong>Statistic Type<\/strong>(as referenced at top of this article).<br \/>\n<img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.37.08-PM.png\" alt=\"\" width=\"683\" height=\"523\" class=\"alignnone size-full wp-image-1454\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.37.08-PM.png 683w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.37.08-PM-300x230.png 300w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>Edit a Stat While Previewing a Page<\/h3>\n<p><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.44.17-PM-1024x741.png\" alt=\"\" width=\"1024\" height=\"741\" class=\"aligncenter size-large wp-image-1442\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.44.17-PM-1024x741.png 1024w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.44.17-PM-300x217.png 300w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.44.17-PM-768x556.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-1.44.17-PM.png 1370w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>While <a href=\"https:\/\/www.bu.edu\/cds\/wp-admin\">logged in to your WordPress theme<\/a> and previewing or visiting a page \u2014 a small link (\u201cEdit Stat\u201d) will render in the top right corner of each statistic. Clicking this navigates to an admin view of the post for editing the statistic information.<\/p>\n<p>&nbsp;<\/p>\n<h2>Adding BU Stats to Site Pages<\/h2>\n<h3>BU Landing Pages<\/h3>\n<figure id=\"attachment_1444\" aria-describedby=\"caption-attachment-1444\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.05.34-PM-1024x487.png\" alt=\"A screenshot demonstrates the admin and public facing output of the BU Stats plugin for a BU Landing Page Template.\" width=\"1024\" height=\"487\" class=\"wp-image-1444 size-large\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.05.34-PM-1024x487.png 1024w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.05.34-PM-300x143.png 300w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.05.34-PM-768x366.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.05.34-PM-1536x731.png 1536w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-2.05.34-PM-2048x975.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-1444\" class=\"wp-caption-text\">A screenshot demonstrates the admin and public facing output of the BU Stats plugin for a BU Landing Page Template. The two column area highlighted with a magenta stroke specifically controls the selection of what statistic posts output.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Upon activating it&#8217;s plugin, a re-order-able BU Stats section becomes accessible from any BU Landing Page Template \u2014 for which different stats can be attached on a per page basis. Gathering statistics in a section such as this is helpful for reinforcing the value a Landing Page discusses.<\/p>\n<p>This new BU Landing Page section provides fields for:<\/p>\n<ul>\n<li><strong>Section Title<\/strong>,<\/li>\n<li><strong>Section Description<\/strong>,<\/li>\n<li>2-column space for <strong>Statistics<\/strong> post selection (Available Statistics in the left column, Attached Statistics in the right column).<\/li>\n<li>(unadvised to add and also optional) <strong>View All Statistics field <\/strong>for entering a link, if a page has been created for showing an archive statistics (not recommended for this theme at this time).<\/li>\n<li><span>(optional) <strong>Statistics Space<\/strong> [CSS] <strong>Class(es)<\/strong> \u2014 for entering in any CSS classes with custom styles, such as <code>spark<\/code> for BU Spark!<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Default, Content Pages<\/h3>\n<figure id=\"attachment_1458\" aria-describedby=\"caption-attachment-1458\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.30.55-PM-1-1024x468.png\" alt=\"A screenshot demonstrates the admin and public facing output of the BU Stats plugin for a BU Landing Page Template. The two column area highlighted with a magenta stroke specifically controls the selection of what statistic posts output.\" width=\"1024\" height=\"468\" class=\"wp-image-1458 size-large\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.30.55-PM-1-1024x468.png 1024w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.30.55-PM-1-300x137.png 300w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.30.55-PM-1-768x351.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.30.55-PM-1-1536x702.png 1536w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.30.55-PM-1-2048x936.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-1458\" class=\"wp-caption-text\">The admin and public-facing output of the BU Stats plugin for a default content page template. The shortcode highlighted around a magenta stroke specifically controls what statistic posts output.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>On more traditional default content page template, a shortcode is used to add Statistic posts of the BU Stats plugin and is helpful in reinforcing value and facts of the organization and of any projects featured.<\/p>\n<p><code>[bu_stat <strong>ids=\"<\/strong>80,2312,2313\" <strong>align=\"<\/strong>center<strong>\"<\/strong> <strong>theme=\"<\/strong>default<strong>\"<\/strong>]<\/code><\/p>\n<p>The shortcode consists of <code>[bu_stat<\/code> and three other parameters which are enclosed by a <code>]<\/code> These parameters (and their options) include:<\/p>\n<ul>\n<li><code>ids=<\/code>(a comma-separated(no spaces) list of <em>id number(s)<\/em> of Statistic post(s) that have been added to the site(see above) from the admin\u00b0.)<\/li>\n<li><code>align=<\/code>(for alignment of the Statistic post(s) included on a page: <code>\"left\"<\/code>\u00a0<code>\"center\"<\/code>\u00a0and <code>\"right\"<\/code> are available for use)<\/li>\n<li><code>theme=<\/code>(at this time, input either <code>\"default\"<\/code> or <code>\"dark\"<\/code>)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u00b0 Post <code>id<\/code> numbers are usually found at the end of a URL of a post, typically viewed from within the admin of your theme. <em>For example:<\/em> a post id of <strong><code>80<\/code><\/strong> would serve up a statistic post from an [example]URL such <code>https:\/\/www.bu.edu\/cds-faculty\/wp-admin\/post.php?<strong>post=80<\/strong>&amp;action=edit<\/code>. Content that&#8217;s a part of that Statistic Post will be rendered in a shortcode when its <code>id<\/code> number of <code>80<\/code> is input.<\/p>\n<p>&nbsp;<\/p>\n<h2>BU Spark! Stats<\/h2>\n<figure id=\"attachment_1462\" aria-describedby=\"caption-attachment-1462\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" src=\"\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.45.45-PM-1024x479.png\" alt=\"\" width=\"1024\" height=\"479\" class=\"size-large wp-image-1462\" srcset=\"https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.45.45-PM-1024x479.png 1024w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.45.45-PM-300x140.png 300w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.45.45-PM-768x359.png 768w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.45.45-PM-1536x718.png 1536w, https:\/\/wpdocs.bu.edu\/cds\/files\/2022\/11\/Screen-Shot-2022-11-22-at-3.45.45-PM-2048x957.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-1462\" class=\"wp-caption-text\">An example showcasing BU Statistics when BU Spark! is designated either with a class on a BU Landing Page template (left) or if a default page template has been checked as BU Spark!<\/figcaption><\/figure>\n<p>For the BU Spark! organization special styles can be applied to groups of stats <a href=\"https:\/\/wpdocs.bu.edu\/cds\/custom-features-for-your-theme\/apply-brand-styles\/#spark-section\">when the <code>spark<\/code> class is included, either in the <\/a><span><a href=\"https:\/\/wpdocs.bu.edu\/cds\/custom-features-for-your-theme\/apply-brand-styles\/#spark-section\"><strong>Statistics Space<\/strong> <strong>Class(es)<\/strong> of the BU Stats section of a BU Landing Page<\/a> OR <a href=\"https:\/\/wpdocs.bu.edu\/cds\/custom-features-for-your-theme\/apply-brand-styles\/#spark-page\">if a default content page template is designated <strong>BU Spark!<\/strong> using the departments taxonomy<\/a>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Paramount for site visitors, statistics aid in reinforcing content and value with factual evidence. The BU Stats plug-in for CDS, provides a way to conveniently add, manage and display of a variety of statistics (some animated) in flexible ways using a WordPress post type. BU Stats can be used to inform and showcase the benefit [&hellip;]<\/p>\n","protected":false},"author":12906,"featured_media":1416,"parent":1242,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/pages\/1415"}],"collection":[{"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/users\/12906"}],"replies":[{"embeddable":true,"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/comments?post=1415"}],"version-history":[{"count":34,"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/pages\/1415\/revisions"}],"predecessor-version":[{"id":1540,"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/pages\/1415\/revisions\/1540"}],"up":[{"embeddable":true,"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/pages\/1242"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/media\/1416"}],"wp:attachment":[{"href":"https:\/\/wpdocs.bu.edu\/cds\/wp-json\/wp\/v2\/media?parent=1415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}