Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Posts can be used to display content on Aurora. Posts can have categories and tags that are used by Post Widgets and Pages with the Blog Page template when filtering posts to display. All posts use the default sidebar.

Iframe
srchttps://cdnapisec.kaltura.com/p/2090521/sp/209052100/embedIframeJs/uiconf_id/44374591/partner_id/2090521?iframeembed=true&playerId=kaltura_player&entry_id=1_bqp8s2xw&flashvars%5BstreamerType%5D=auto&flashvars%5BlocalizationCode%5D=en&flashvars%5BleadWithHTML5%5D=true&flashvars%5BsideBarContainer.plugin%5D=true&flashvars%5BsideBarContainer.position%5D=left&flashvars%5BsideBarContainer.clickToClose%5D=true&flashvars%5Bchapters.plugin%5D=true&flashvars%5Bchapters.layout%5D=vertical&flashvars%5Bchapters.thumbnailRotator%5D=false&flashvars%5BstreamSelector.plugin%5D=true&flashvars%5BEmbedPlayer.SpinnerTarget%5D=videoHolder&flashvars%5BdualScreen.plugin%5D=true&flashvars%5BKaltura.addCrossoriginToIframe%5D=true&&wid=1_xxawwj47
width400
height285

(See all Aurora WordPress Training.)

Post Widgets

Available widgets include Recent Posts, Recent Custom Posts Type Widget, Flexible Posts Widget, and Post Loop.

Recent Posts

Recent Posts is the simplest of the post widgets. It automatically displays posts based on when they were created, in descending order. This widget displays each post’s title as a link to that post. You can choose how many posts you want to be displayed, and you can display each post’s creation date.

Recent Post Widget

Recent Custom Posts Type Widget

Recent Custom Posts Type Widget is more flexible than Recent Posts; you do not have to display any posts.

Recent Custom Posts Type Widget can display Posts, Pages, People, Media, and Meta Sliders. You can filter which posts to display by Author. You can order the posts by post title, ID, author, creation date, last modified date, randomly, or in no specific order at all. Like Recent Posts, you can choose how many posts you want to be displayed.

You can choose what parts of the posts you want to be displayed, including the title, body excerpt, date posted, and featured thumbnails. Keep in mind that not every post type has all of these. For example, Media does not have a body excerpt so checking that box would do nothing.

Recent Custom Posts Type Widget

Flexible Posts Widget

Flexible Posts Widget is a versatile post widget, but some of the features do not work when using the widget with Page Builder. This widget is fully functional when placed in a sidebar.

Flexible Posts Widget can display Posts, Pages, Media, People, or Meta Sliders. You can order posts by publish date, modified date, title, menu order, post ID, author, post slug, comment count, randomly, or post ID order. You can also choose to skip over a certain number of posts. You can choose whether or not to display the posts’ thumbnails and at what size.

You can filter posts by certain taxonomies or terms such as category, tag, format, or group. You can specify exactly which posts you want to display by listing their IDs. Note that selecting posts based on their IDs will override any options you may have chosen for filtering by post type or taxonomy/term.

flexible posts widget

Post Loop

Post Loop can display posts, pages, people, or meta sliders. You can order posts by post ID, author, name, date, date modified, parent, random, comment count, menu order, or post in order. The widget displays the title of each post. You may choose to display a certain number of posts and filter the posts by tag or by category.

  1. Add a Post Loop widget to your Page Builder page.

  2. Select the content.php template.

  3. Under the additional field add the following code to filter by category: &category_name=yourcategoryname. For tags, use: & tag=yourtagname.

  4. Under the Widget Styles section on the right side of the widget, add a class name (anything you want) to the area called Widget Class.

  5. Save/Update the page.

  6. Add the CSS below to the Custom CSS section of your site.

Code Block
Note: In this example I’ve given my Post Loop widget a class of any-name-you-want

/* ===================== Start Post Loop Template Code ===================== */
.any-name-you-want .entry-content, .any-name-you-want .entry-footer, .any-name-you-want .entry-meta {
    display: none;
}
 
.any-name-you-want h1 {
    border-bottom: medium none !important;
    font-size: 16px;
   line-height:1.5em;
   margin-top:0px !important;
   margin-bottom:0px !important;
}
 
.any-name-you-want .hentry {
    margin-bottom: 0;
    padding-bottom: 0 !important;
}
 
/* ===================== End Post Loop Template Code ===================== */
Code Block
Note: If you use the Post Loop widget in multiple places and want the same style then you can use the same class name on the widget and it will pick up the custom CSS.
Post Loop Widget

Post Loop Templates

Notice that many options under Template for Post Loop Templates. Not all of these templates will be useful to people using this widget, as some were intended for other areas of Aurora and just happen to have been picked up by this widget.

  • content-az.php (not fully intended for use with post loop but it can be utilized)

    • Returns an A-Z listing of all the pages on your site (which can also be achieved with the A-Z Listing page template). You need to create a category with no posts in it and then define it, or else the A-Z post loop will pull your most recent post’s content and add an A-Z listing below it.

  • content-blank.php (not intended for use with post loop)

    • Returns posts with no styling.

  • content-featured-image.php (most widely used template)

    • Returns the featured image, post date, excerpt, and read more links.

  • content-home.php (not intended for use with post loop)

    • Same as content-blank except does not display content and markup if the post is blank.

  • content-none.php (not intended for use with post loop)

    • Returns errors for the system.

  • content-page.php

    • Returns posts with a title and an excerpt.

  • content-person.php (not intended for use with post loop)

    • Returns people for a different portion of WordPress.

  • content-single.php

    • Returns post title, date, excerpt, categories, and tags.

  • content.php

    • Returns post title that links to post, date, excerpt, categories, and tags.

Post Expirator

Post Expirator is a plugin that allows you to add an expiration date to any post or page when enabled in the Screen Options of the post’s edit screen.

  1. Scroll down to Post Expirator on the right side of the edit screen.

  2. Check Enable Post Expiration to set an expiration date.

  3. Choose a date and time at which you would like your post to expire and choose what happens to the post upon expiration. You have the following options:

    1. Change its status to Draft.

    2. Delete the post.

    3. Change the post's visibility to Private.

    4. Update the post's category (Replace, Add, Remove).

      Post Expirator options
  4. Click Update to save your changes.

Excerpts

Posts can have custom excerpts that show up in place of the full text in post feeds such as search result pages and tag pages.

  1. Scroll down to Excerpt on the post's edit screen.

  2. Type the custom text you'd like to show up in the text box.

  3. Select Update when finished.

  4. In order for these excerpts to show up anywhere, you must have Summary chosen next to Settings > Reading > For each article in a feed, show [Full text, Summary].

    1. If you have Summary chosen, posts without excerpts will also be affected. In post feeds, the body of such posts will be cut off after a certain number of characters rather than displaying in full.

SASS Excerpt

Below is an example of what the SASS Tag page looks like with Full Text chosen vs with Summary chosen. The Child Theming with SASS page has an excerpt, whereas the Child Theming with CSS page does not.

full text

SASS Tag Page: Full Text

SASS Tag With Summary

SASS Tag Page: Summary

Basic Aurora WordPress Articles

Resources