Utilizing WP Present Posts

Utilizing WP Present Posts

Photo of author
Written By user


Including submit lists and grids to your Web site could not be simpler than with the WP Show Posts plugin. Dispatch makes use of the Free model to show posts on the Entrance web page and within the Sidebars. In fact with a little bit Flint Pores and skin CSS therapy.

Head off to Dashboard > WP Present Posts > All Lists. Inside are six lists:

  • Align
  • Customary
  • Sidebar
  • Header
  • Easy
  • Easy Sidebar

Every of them have very explicit settings required to match the demo content material you see right here. Altering these settings might have an effect on the best way the submit is displayed, and never essentially for the higher. So please work on a reproduction or make an observation earlier than altering.

Word: the identify of the Record has no relevance to the totally different types displayed.

Common ( and vital ) info

Earlier than we go into the element let’s cowl some fundamental and essential info.

Superior Settings

For the aim of the demo content material a few the Lists are utilizing Superior Settings. First off the Customary Record is utilizing Ascending Order (Default: Descending).  Secondly the Easy Record is utilizing Offset, so it omits the primary 4 posts. You might wish to put these again to default when you’re not intending to switch them.

Duplicating WP Present Posts Record

So we’ve 4 lists, and we wish to make a brand new Customary record with a distinct class. The simplest approach is to make use of one of many Duplicate Put up plugins within the WordPress repository. Easy hey. And it really works for all submit sorts together with GP Components. Superior. Word: When making a reproduction you’re typically given two choices. Clone and New Draft. I counsel utilizing the New Draft as some folks have reported points when utilizing Clone.


Record: Customary

That is the usual WP Present Put up record that has the identical customized styling utilized to the GP Weblog:

[wp_show_posts id=”1275″]

That is how the record is displayed inside the Content material space simply by including the WP Present Put up Shortcode. Right here follows the essential styling modifications which were made.

Content material Wrap (WPSP Solely)

Utilizing a customized Hook Ingredient the Put up article content material is now wrapped inside a DIV container. This container carries a category of wpsp-content-wrap for styling. This wrap is current on all WP Present Posts which are output inside Dispatch.

Featured Picture

The featured picture has a set top to match the structure. That is achieved utilizing this CSS:

.generate-columns-container article .inside-article img,  .wp-show-posts-image img {
    top: 180px;
    width: 100%;
    -o-object-fit: cowl !vital;
    object-fit: cowl !vital;

You possibly can edit the peak property to swimsuit, or take away the CSS it fully if you wish to use your personal sizes.

Meta above title

That is achieved utilizing a flex field on the Entry Header. Once more this utilized to the GP Weblog:

.generate-columns-container article .entry-header, .wp-show-posts-entry-header {
    show: -webkit-box;
    show: -ms-flexbox;
    show: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;

Entry Title pressured to 2 strains

The entry title at all times shows a minimal and most of two strains. This mantains the throughout row alignment. Once more that is utilized to GP Weblog. The ex unit is used to outline the variety of strains seen. The strains are set by defining the line-height and setting the top to as many mutiples as you require strains. e.g up the peak to 7.5ex will create three strains.

.generate-columns-container article .entry-header .entry-title, .wp-show-posts article .wp-show-posts-entry-title {
    line-height: 2.5ex;
    top: 5ex;
    overflow: hidden;
    text-overflow: ellipsis;


Record: Align

Designed for a single column record this shows the content material the picture to the left and content material to the proper. That is subtly totally different to simply resizing the picture within the WP Present Posts record settings and aligning it left. Because of the Content material Wrap we added (above) the content material won’t ever wrap across the picture. On cell it simply stacks.

So as to add one in every of these your posts requires a little bit markup. And is finished like so:

<div class="wpsp-align">shortcode_goes_here</div>
[wp_show_posts id=”1279″]


Lists: Sidebar

In the proper had sidebar you may see the Sidebar record. This Record is about to 1 column and solely shows the Featured Picture, Title and Class. That is designed for Widgets, a slim column or as a part of a grid (like in our subsequent Record).

So as to add this fashion the Widget requires a CSS Class of:


Dispatch comes with Widget Lessons Plugin put in. This offers this operate.


Record: Header

The Header record as seen on the Entrance Web page requires an inventory containing solely 5 posts. And may accomodate many of the content material parts. That are solely displayed on the massive chief submit.

So as to add this fashion the Header Ingredient requires the next ingredient courses:

wpsp-grid wpsp-card

Record: Easy

That is output utilizing the wpsp-card inserted right into a containing DIV like so:

<div class="wpsp-card">shortcode goes right here</dib>


Record: Easy Sidebar

Nothing fancy right here,  only a record being output utilizing the a Widget within the sidebar.