{"id":461,"date":"2017-04-30T10:49:35","date_gmt":"2017-04-30T17:49:35","guid":{"rendered":"https:\/\/www.elegantthemes.com\/documentation\/?p=461"},"modified":"2017-05-17T20:42:05","modified_gmt":"2017-05-18T03:42:05","slug":"module-posts","status":"publish","type":"post","link":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/","title":{"rendered":"The Extra Posts Module"},"content":{"rendered":"<p><iframe loading=\"lazy\" class=\"youtube-player\" type=\"text\/html\"  width=\"920\" height=\"518\" src=\"https:\/\/www.youtube.com\/embed\/BPrTqZeLOb0?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2>Module Overview<\/h2>\n<p><img decoding=\"async\" alt=\"docs image\" src=\"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/cb-posts-module.png\" \/><\/p>\n<p>The Posts Module displays up to five posts with one being the primary\/active post. The user can cycle through the posts (changing the current primary\/active post) by clicking on any of the non-primary posts. Exactly which posts are shown in the module will depend on which categories you apply the layout to as well as how you configure the module&#8217;s settings.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/www.elegantthemes.com\/preview\/Extra\/category\/posts\" class=\"button inline-button primary-button view-button\">View A Live Demo Of This Module<\/a><\/p>\n<h2>The Module Options<\/h2>\n<p><img decoding=\"async\" alt=\"docs image\" src=\"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/module-posts-options.png\" class=\"et_waypoint\"\/><\/p>\n<h2>General Settings<\/h2>\n<h3>Categories<\/h3>\n<p>Choose the categories from which this module should display posts.<\/p>\n<h3>Posts Limit<\/h3>\n<p>Define the number of posts to be shown in the slider.<\/p>\n<h3>Display Featured Posts Only<\/h3>\n<p>Yep, you guessed it! Enable this option to show only featured posts.<\/p>\n<h3>Show Featured Image<\/h3>\n<p>Show the posts&#8217; featured image.<\/p>\n<h3>Show Author<\/h3>\n<p>Include the author in each posts&#8217; post-meta information.<\/p>\n<h3>Show Categories<\/h3>\n<p>Include categories in each posts&#8217; post-meta information.<\/p>\n<h3>Show Comments<\/h3>\n<p>Include the comment count in each posts&#8217; post-meta information.<\/p>\n<h3>Show Rating<\/h3>\n<p>Include the rating in each posts&#8217; post-meta information.<\/p>\n<h3>Show Date<\/h3>\n<p>Include the date in each posts&#8217; post-meta information.<\/p>\n<h3>Heading Style<\/h3>\n<p>Choose a heading style.<\/p>\n<h3>Sort Method<\/h3>\n<p>Choose the method in which the posts will be sorted.<\/p>\n<h3>Sort Order<\/h3>\n<p>Choose whether the posts will be displayed in descending or ascending order.<\/p>\n<h3>Date Format<\/h3>\n<p>The format in which to display the date. <strong>This must be specified using a <a href=\"http:\/\/php.net\/manual\/en\/function.date.php#refsect1-function.date-parameters\" rel=\"nofollow\">PHP date() format<\/a> string<\/strong>.<\/p>\n<h3>Admin Label<\/h3>\n<p>This will change the label of the module in the builder for easy identification.<\/p>\n<h3>CSS ID<\/h3>\n<p>Enter an optional CSS ID to be used for this module. An ID can be used to create custom CSS styling, or to create links to particular sections of your page.<\/p>\n<h3>CSS Class<\/h3>\n<p>Enter optional CSS classes to be used for this module. A CSS class can be used to create custom CSS styling. You can add multiple classes, separated with a space.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Display a basic feed of posts from specific categories and sorted by various different methods.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,21],"tags":[],"class_list":["post-461","post","type-post","status-publish","format-standard","hentry","category-extra","category-category-builder"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Elegant Themes Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Extra Posts Module - Elegant Themes Documentation\" \/>\n<meta property=\"og:description\" content=\"Display a basic feed of posts from specific categories and sorted by various different methods.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/\" \/>\n<meta property=\"og:site_name\" content=\"Elegant Themes Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-30T17:49:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-18T03:42:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/cb-posts-module.png\" \/>\n<meta name=\"author\" content=\"admindocumentation\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admindocumentation\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/\"},\"author\":{\"name\":\"admindocumentation\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/1a5d1f17110e347e68b57af08f2b5268\"},\"headline\":\"The Extra Posts Module\",\"datePublished\":\"2017-04-30T17:49:35+00:00\",\"dateModified\":\"2017-05-18T03:42:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/\"},\"wordCount\":320,\"image\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/cb-posts-module.png\",\"articleSection\":[\"Extra Theme Documentation\",\"The Category Builder\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/\",\"name\":\"The Extra Posts Module - Elegant Themes Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/cb-posts-module.png\",\"datePublished\":\"2017-04-30T17:49:35+00:00\",\"dateModified\":\"2017-05-18T03:42:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/1a5d1f17110e347e68b57af08f2b5268\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/cb-posts-module.png\",\"contentUrl\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/cb-posts-module.png\",\"width\":960,\"height\":549},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/extra\\\/module-posts\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Extra Posts Module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\",\"name\":\"Elegant Themes Documentation\",\"description\":\"Just another WordPress site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/1a5d1f17110e347e68b57af08f2b5268\",\"name\":\"admindocumentation\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93f87460348373787f0caa24e173bcefb6261f6bd8e78555d580cf9c0070eccc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93f87460348373787f0caa24e173bcefb6261f6bd8e78555d580cf9c0070eccc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93f87460348373787f0caa24e173bcefb6261f6bd8e78555d580cf9c0070eccc?s=96&d=mm&r=g\",\"caption\":\"admindocumentation\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Elegant Themes Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/","og_locale":"en_US","og_type":"article","og_title":"The Extra Posts Module - Elegant Themes Documentation","og_description":"Display a basic feed of posts from specific categories and sorted by various different methods.","og_url":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/","og_site_name":"Elegant Themes Documentation","article_published_time":"2017-04-30T17:49:35+00:00","article_modified_time":"2017-05-18T03:42:05+00:00","og_image":[{"url":"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/cb-posts-module.png","type":"","width":"","height":""}],"author":"admindocumentation","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admindocumentation","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/#article","isPartOf":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/"},"author":{"name":"admindocumentation","@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/1a5d1f17110e347e68b57af08f2b5268"},"headline":"The Extra Posts Module","datePublished":"2017-04-30T17:49:35+00:00","dateModified":"2017-05-18T03:42:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/"},"wordCount":320,"image":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/cb-posts-module.png","articleSection":["Extra Theme Documentation","The Category Builder"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/","url":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/","name":"The Extra Posts Module - Elegant Themes Documentation","isPartOf":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/#primaryimage"},"image":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/cb-posts-module.png","datePublished":"2017-04-30T17:49:35+00:00","dateModified":"2017-05-18T03:42:05+00:00","author":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/1a5d1f17110e347e68b57af08f2b5268"},"breadcrumb":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/#primaryimage","url":"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/cb-posts-module.png","contentUrl":"https:\/\/www.elegantthemes.com\/documentation\/wp-content\/uploads\/2017\/04\/cb-posts-module.png","width":960,"height":549},{"@type":"BreadcrumbList","@id":"https:\/\/www.elegantthemes.com\/documentation\/extra\/module-posts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.elegantthemes.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"The Extra Posts Module"}]},{"@type":"WebSite","@id":"https:\/\/www.elegantthemes.com\/documentation\/#website","url":"https:\/\/www.elegantthemes.com\/documentation\/","name":"Elegant Themes Documentation","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.elegantthemes.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/1a5d1f17110e347e68b57af08f2b5268","name":"admindocumentation","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/93f87460348373787f0caa24e173bcefb6261f6bd8e78555d580cf9c0070eccc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/93f87460348373787f0caa24e173bcefb6261f6bd8e78555d580cf9c0070eccc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93f87460348373787f0caa24e173bcefb6261f6bd8e78555d580cf9c0070eccc?s=96&d=mm&r=g","caption":"admindocumentation"}}]}},"_links":{"self":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/comments?post=461"}],"version-history":[{"count":1,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/461\/revisions"}],"predecessor-version":[{"id":462,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/461\/revisions\/462"}],"wp:attachment":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/media?parent=461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/categories?post=461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/tags?post=461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}