There are 2 possible ways of making blog lists:
⋅ A － Using a WPBakery element which lists blog posts, like the Blog List or Blog Slider element
⋅ B － Using a predefined page template, such as the Blog Standard or Blog Masonry page template, for example.
In this article, we’ll cover the second method described above.
First off, we’ll create a new page using the Blog Standard page template.
To create a new page, you should first navigate to the menu located at the right side of the screen and in Page Attributes sections find the Template option.
You can see a list of all available page templates by clicking on the dropdown under the Template label. The list of predefined page templates may vary depending on the theme, so don’t be alarmed if the list of your options isn’t exactly the same as on the screenshot. For the purposes of this article, let’s select Blog Standard template.
When you publish the page by pressing the Publish button at the top right section of your page, a list of your posts, shown from the latest to the oldest, including page pagination (if needed), will appear on the frontend, even though you haven’t actually inserted any content inside your page.
This is due to the manner in which we designed the templates; no page element needs to be inserted in order for the predefined content to be displayed.
Of course, by managing the options (Global or Page options) users can further enhance the appearance of the page, which we will now look at briefly.
All the relevant options for Blog templates can be found in Theme_name Blog (Mikado Blog in our example); for example Blog Standard, which we previously selected. Some options apply for all Blog templates, while other are only for Blog Masonry.
Additionally, you can add a slider to a page by adding a slider shortcode in Theme_name General section.
Depending on the version of Slider Revolution you are running, the slider shortcode can be found in one of 2 following ways:
Here’s an example of a simple blog layout which can be created simply by adding a slider and the Blog Slider template.
Additional options which were used here are the following:
Header Type: Minimal
Show Title Area: No
Blog Category: Adventure, Number of Posts: 4, Pagination Type: No Pagination and Number of Words in Excerpt: 20
This means our page shows only 4 posts which have the category Adventure associated to them; the page has no pagination, while the excerpt of every single post shows no more than 20 words.
Unfortunately, it is important to note that by choosing a page template other than the Default of Full width page template, no content which was added directly in the page using the WPBakery Page Builder will show in the frontend.
This is by design. All page templates except the 2 mentioned (Default and Full width) show predefined content, which is hard coded.
However if you wish to tackle this, there are 2 possible methods:
⋅ A － You can switch the template to Default or Full Width and insert a blog list template, i.e. you can create the page manually.
⋅ B － You can adjust the template file which creates the Blog Standard
The file path may vary depending on the theme. Theme used in this example was Backpack Traveler.
In our example the file that needs to be changed has the following path:
The code that needs to be added is the following:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
and should be added as shown on this screenshot:
Here’s how the end result would look:
Note: In case you are not familiar with coding, probably the best solution would be tracking down a freelancer which could apply this for you.