Adding post lists and grids to your Site couldn’t be easier than with the WP Show Posts plugin. Dispatch uses the Free version to display posts on the Front page and in the Sidebars. Of course with a little Flint Skin CSS treatment.
Head off to Dashboard > WP Show Posts > All Lists. Within are six lists:
- Align
- Standard
- Sidebar
- Header
- Simple
- Simple Sidebar
Each of them have very particular settings required to match the demo content you see here. Changing those settings may affect the way the post is displayed, and not necessarily for the better. So please work on a duplicate or make a note before changing.
Note: the name of the List has no relevance to the different styles displayed.
General ( and important ) information
Before we go into the detail let’s cover some basic and very important information.
Advanced Settings
For the purpose of the demo content a couple of the Lists are using Advanced Settings. First off the Standard List is using Ascending Order (Default: Descending). Secondly the Simple List is using Offset, so it omits the first 4 posts. You may want to put these back to default if you’re not intending to replace them.
Duplicating WP Show Posts List
So we have four lists, and we want to make a new Standard list with a different category. The easiest way is to use one of the Duplicate Post plugins in the WordPress repository. Simple hey. And it works for all post types including GP Elements. Awesome. Note: When making a duplicate you are generally given two options. Clone and New Draft. I advise using the New Draft as some people have reported issues when using Clone.
List: Standard
This is the standard WP Show Post list that has the same custom styling applied to the GP Blog:
Foods That Boost Your Brain Health
Did you know that what you eat can directly impact your brain health? It’s true! The food you consume affects your mood, your energy levels,…
Start Using Natural Arthritis Remedies to Manage Your Pain
Arthritis is a debilitating condition if it’s allowed to progress without proper management, regardless of which type you have. There are days where you can’t…
What Are the Side Effects of Your Arthritis Medications?
Modern medicine has made many strides in the last century but sometimes at the cost to your body, immune system, and the gut microbiome. Many…
Alternative Arthritis Therapies Can Help to Manage the Pain Better
Alternative treatment options have been available for eons, but they’re becoming more popular with the science to support them. All arthritis types can be treated…
The Ultimate Gout Diet Can Change Your Life for the Better!
Gout is a different kind of arthritis that requires special treatment with simple and effective nutritional guidelines. Not every diet works because you can’t focus…
Prevent Gout With Simple Tricks and Live Pain-Free Again!
The body is both its own worst enemy and best friend, and your desires and nutritional lifestyle are the fine lines between the two. Everything…
Do You Have Gout? What Is Gout and What Causes It?
Gout is a unique form of arthritis, and it’s truly painful. Some people only have one or two flares a month, so they don’t consider…
How Does the Body Turn Inflammation Into Painful Arthritis?
Chronic inflammation is the cause, progressor, and result of various kinds of arthritis. It either starts with acute inflammation after an injury, or it results…
Where Does The Biggest Cause Of Rheumatoid Arthritis Hide?
Since inflammation is such a focal point in the discussion of various types of arthritis, it can be easy to miss the bigger picture. The…
What Causes Arthritis to Develop in Your Joints?
Different types of arthritis are caused by various factors. Learning about the risks and predisposed causations of these debilitating conditions can help you navigate away…
What Are the Most Common Arthritis Types People Can Have?
Arthritis isn’t only a pain in the backside. It’s a painful inflammation that surrounds the joints in your body. Many people suffer from osteoarthritis, the…
Mediterranean Diet – What It is, It’s History and Benefit
As the name suggests, the Mediterranean diet is a diet based on the traditional foods of the countries surrounding the Mediterranean Sea. Italy, Portugal, France,…
Reclaim Your Life by Doing a Digital Detox – Unplug your Life!
New research shows that if you feel tired, overwhelmed, and unhappy, one of the reasons could be digital overload and it’s time to do a…
8 Amazing Bodyweight Workout Equipment That Will Take Your Bodyweight Training to The Next Level
Introduction The common belief is that bodyweight training does not require any equipment. After all, your body’s weight is the resistance that you’ll using in…
Aside for Widgets
Sidebar Widgets are a main feature of any Magazine Blogging site. To aid with that Dispatch uses a nifty little plugin and a couple of…
Style Guide
Heading One H1 Heading Two H2 Heading Three H3 Heading Four H4 Heading Five H5 Heading Six H6 Font: Playfair Playfair is a transitional design….
How to change the Custom Colors
Changing Colors in Dispatch are mainly done via the Theme Customizer. Certain elements such as Page Heros are controlled within the Header Element and are…
Page and Post Heroes
Page Heroes are those big bold images and headlines you find at the top of your posts and pages. They sit just below the Site…
This is how the list is displayed within the Content area just by adding the WP Show Post Shortcode. Here follows the basic styling changes that have been made.
Content Wrap (WPSP Only)
Using a custom Hook Element the Post article content is now wrapped within a DIV container. This container carries a class of wpsp-content-wrap
for styling. This wrap is present on all WP Show Posts that are output inside Dispatch.
Featured Image
The featured image has a fixed height to match the layout. This is achieved using this CSS:
.generate-columns-container article .inside-article img, .wp-show-posts-image img {
height: 180px;
width: 100%;
-o-object-fit: cover !important;
object-fit: cover !important;
}
You can edit the height property to suit, or remove the CSS it entirely if you want to use your own sizes.
Meta above title
This is achieved using a flex box on the Entry Header. Again this applied to the GP Blog:
.generate-columns-container article .entry-header, .wp-show-posts-entry-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
Entry Title forced to 2 lines
The entry title always displays a minimum and maximum of 2 lines. This mantains the across row alignment. Again this is applied to GP Blog. The ex
unit is used to define the number of lines visible. The lines are set by defining the line-height
and setting the height
to as many mutiples as you require lines. e.g up the height to 7.5ex will create three lines.
.generate-columns-container article .entry-header .entry-title, .wp-show-posts article .wp-show-posts-entry-title {
line-height: 2.5ex;
height: 5ex;
overflow: hidden;
text-overflow: ellipsis;
}
List: Align
Designed for a single column list this displays the content the image to the left and content to the right. This is subtly different to just resizing the image in the WP Show Posts list settings and aligning it left. Thanks to the Content Wrap we added (above) the content will never wrap around the image. On mobile it just stacks.
To add one of these your posts requires a little markup. And is done like so:
<div class="wpsp-align">shortcode_goes_here</div>
Foods That Boost Your Brain Health
Did you know that what you eat can directly impact your brain health? It’s true! The food you consume affects your mood, your energy levels, your ability to focus, and your memory. Eating the right foods can help you stay sharp as you age and avoid problems like dementia. So, what are some of the…
Start Using Natural Arthritis Remedies to Manage Your Pain
Arthritis is a debilitating condition if it’s allowed to progress without proper management, regardless of which type you have. There are days where you can’t be as active as you desire, and there are days when the stiffness is utterly painful. Inflammation is a major concern for arthritis, and the immune system can react unfavorably…
What Are the Side Effects of Your Arthritis Medications?
Modern medicine has made many strides in the last century but sometimes at the cost to your body, immune system, and the gut microbiome. Many times, it can be like medicine takes one step forward and two steps back. It’s true that many medications provide tremendous benefits to patients, but there are multiple unwanted side…
Alternative Arthritis Therapies Can Help to Manage the Pain Better
Alternative treatment options have been available for eons, but they’re becoming more popular with the science to support them. All arthritis types can be treated effectively with natural therapies. They can even lower uric acid levels in gout. These alternative options can treat the effects of arthritis and the pain that accompanies it. Some methods…
The Ultimate Gout Diet Can Change Your Life for the Better!
Gout is a different kind of arthritis that requires special treatment with simple and effective nutritional guidelines. Not every diet works because you can’t focus on inflammation alone. Gout is mainly caused by the build-up of excess uric acid, and there are some foods you must avoid to prevent the flares. Changing your diet can…
Prevent Gout With Simple Tricks and Live Pain-Free Again!
The body is both its own worst enemy and best friend, and your desires and nutritional lifestyle are the fine lines between the two. Everything that goes into your stomach impacts your health, whether it promotes or diminishes it. Gout is intricately connected to the foods you eat and the lifestyle you lead. The stomach…
Do You Have Gout? What Is Gout and What Causes It?
Gout is a unique form of arthritis, and it’s truly painful. Some people only have one or two flares a month, so they don’t consider it a chronic problem. However, other people have flares galore, leaving them wondering whether it’s become permanent. Gout is an inflammatory response, but it’s also caused by a second culprit…
How Does the Body Turn Inflammation Into Painful Arthritis?
Chronic inflammation is the cause, progressor, and result of various kinds of arthritis. It either starts with acute inflammation after an injury, or it results from the body turning on itself when an autoimmune dysfunction arises. Either way, inflammation is painful. So, why would you want to suffer from this life-sucking, pleasure-popping condition that makes…
Where Does The Biggest Cause Of Rheumatoid Arthritis Hide?
Since inflammation is such a focal point in the discussion of various types of arthritis, it can be easy to miss the bigger picture. The human body has an incredible defense system, and it can either be your best friend or your worst enemy. A dysfunctional immune response leads to rheumatoid arthritis and other forms….
What Causes Arthritis to Develop in Your Joints?
Different types of arthritis are caused by various factors. Learning about the risks and predisposed causations of these debilitating conditions can help you navigate away from them or manage them more effectively. Some can be avoided, and the onset of others can be delayed well into the golden years. Moreover, some types of arthritis can…
What Are the Most Common Arthritis Types People Can Have?
Arthritis isn’t only a pain in the backside. It’s a painful inflammation that surrounds the joints in your body. Many people suffer from osteoarthritis, the most common type, but there are more than 100 other types of arthritis. The first certainty about arthritis is that it’s misunderstood. The term ‘arthritis’ actually refers to a collection…
Mediterranean Diet – What It is, It’s History and Benefit
As the name suggests, the Mediterranean diet is a diet based on the traditional foods of the countries surrounding the Mediterranean Sea. Italy, Portugal, France, Spain and Greece are just some examples. In America and the Western World, our diet has become increasingly high in fat and sugar. The red meat content is also extremely…
Reclaim Your Life by Doing a Digital Detox – Unplug your Life!
New research shows that if you feel tired, overwhelmed, and unhappy, one of the reasons could be digital overload and it’s time to do a digital detox. The average American checks his or her phone over 110 times a day. The constant distraction of our digital lives has made us less happy and more unproductive….
8 Amazing Bodyweight Workout Equipment That Will Take Your Bodyweight Training to The Next Level
Introduction The common belief is that bodyweight training does not require any equipment. After all, your body’s weight is the resistance that you’ll using in your training, right?For the most part, the answer is yes. You do not need equipment like dumbbells, barbells, squat racks and so on.However, there are many different types of equipment…
Benefits of Organic Green Tea
organic green tea is an excellent health-promoting beverage. Not only does it contain significantly fewer chemicals and pesticides, but it also offers numerous health benefits such as improved brain function, weight loss, and reduced risk of chronic diseases. Making the switch to organic green tea is a simple and easy way to improve your health and wellbeing.
Lists: Sidebar
In the right had sidebar you can see the Sidebar list. This List is set to 1 column and only displays the Featured Image, Title and Category. This is designed for Widgets, a narrow column or as part of a grid (like in our next List).
To add this style the Widget requires a CSS Class of:
wpsp-card
Dispatch comes with Widget Classes Plugin installed. This provides this function.
List: Header
The Header list as seen on the Front Page requires a list containing only 5 posts. And can accomodate most of the content elements. Which are only displayed on the large leader post.
To add this style the Header Element requires the following element classes:
wpsp-grid wpsp-card
List: Simple
This is output using the wpsp-card
inserted into a containing DIV like so:
<div class="wpsp-card">shortcode goes here</dib>
List: Simple Sidebar
Nothing fancy here, just a list being output using the a Widget in the sidebar.