ViniloBlog
  • Noticias
  • Cultura Geek
  • Mundo Asia
  • Música
  • Tecnología
  • Videojuegos
No Result
View All Result
  • Noticias
  • Cultura Geek
  • Mundo Asia
  • Música
  • Tecnología
  • Videojuegos
No Result
View All Result
ViniloBlog
No Result
View All Result
Home Uncategorized

Using WP Show Posts

Ender Arrieta by Ender Arrieta
10/10/2018
in Uncategorized
0 0
0
Using WP Show Posts
0
SHARES
Compártelo en FacebookCompártelo en Twitter (X)

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:

[wp_show_posts id=”1275″]

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>
[wp_show_posts id=”1279″]

 

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.

 

 

Ender Arrieta

Ender Arrieta

Director general y Editor de ViniloBlog • Soy un ingeniero dedicado a la cultura pop. Coleccionista discográfico.

Next Post
ipod

iPod: 4 razones por las que este dispositivo nos sigue impactando

  • Trending
  • Comments
  • Latest
Las 5 mejores plataformas para ver series y películas

Las 5 mejores plataformas para ver series y películas vía streaming

16/07/2023
'Una Pareja Explosiva 4' está oficialmente en desarrollo

‘Una Pareja Explosiva 4’ está oficialmente en desarrollo

21/03/2023
Panini Rusia 2018

Panini Rusia 2018: Completa tu álbum de manera digital

19/05/2018
omori rpg terror psicológico

‘OMORI’: Un RPG de terror psicológico basado en las emociones

14/04/2021
mejores villanos en anime y manga

Los 10 mejores villanos en anime y manga shonen

27/07/2022
Kdramas

Conoce los Kdramas de fantasía que te van a enamorar

01/09/2020
redactores

Ven y forma parte del equipo de redactores de ViniloBlog

55
John Petrucci

‘Terminal Velocity’: John Petrucci vuelve como solista tras 15 años desde su debut

19
medium

Medium: la mejor alternativa para tu marca personal como bloguero

7
Hollywood

Netflix estrena ‘Hollywood’: una nueva miniserie en manos de Ryan Murphy

6
5 recomendaciones de libros para leer en Halloween

5 recomendaciones de libros para leer en Halloween

6
Los Darts

Los Darts: 57 años de trascendencia en el Pop/Rock venezolano

5
Michael Movie

“Michael” celebra y reivindica la trayectoria del único Rey del Pop

26/04/2026
Michael Movie 2026

Michael: un primer tráiler entre el mito, el espectáculo y las dudas

02/02/2026
Rockstar Games revela el segundo tráiler oficial de Grand Theft Auto VI

Rockstar Games revela el segundo tráiler oficial de Grand Theft Auto VI

06/05/2025
GTA 6: fecha oficial de lanzamiento, habrá que esperar hasta 2026

GTA 6: fecha oficial de lanzamiento, habrá que esperar hasta 2026

06/05/2025
weapons película

Weapons: tráiler oficial de la nueva película de Zach Cregger

06/05/2025
Un episodio explosivo: el capítulo 211 de Sakamoto Days conquista a los fans

Un episodio explosivo: el capítulo 211 de Sakamoto Days conquista a los fans

06/05/2025

Recomendados

Michael Movie

“Michael” celebra y reivindica la trayectoria del único Rey del Pop

26/04/2026
Michael Movie 2026

Michael: un primer tráiler entre el mito, el espectáculo y las dudas

02/02/2026
Rockstar Games revela el segundo tráiler oficial de Grand Theft Auto VI

Rockstar Games revela el segundo tráiler oficial de Grand Theft Auto VI

06/05/2025
GTA 6: fecha oficial de lanzamiento, habrá que esperar hasta 2026

GTA 6: fecha oficial de lanzamiento, habrá que esperar hasta 2026

06/05/2025
weapons película

Weapons: tráiler oficial de la nueva película de Zach Cregger

06/05/2025
Un episodio explosivo: el capítulo 211 de Sakamoto Days conquista a los fans

Un episodio explosivo: el capítulo 211 de Sakamoto Days conquista a los fans

06/05/2025
ViniloBlog

En ViniloBlog somos un medio digital donde podrás encontrar lo mejor de la cultura pop, del mundo geek y muchísimo más.

¡Adictos a la Cultura Pop!

Síguenos

Tags

amazon prime video Android anime Apple batman BTS cine comics Dc Dc comics Disney disney plus estrenos hbo HBO Max HBO Max Latinoamérica K-pop marvel Marvel Comics Marvel Studios Michael Jackson Microsoft Música Netflix Netflix España Netflix Latinoamérica PC Peliculas playstation PS4 PS5 Redes Sociales Rock Series sony spider-man star wars Streaming tecnologia the beatles venezuela Videojuegos viniloblog Warner Bros Xbox One
  • ¿Qué es ViniloBlog?
  • Aviso Legal
  • Políticas de Privacidad
  • Políticas de Cookies

© 2024 ViniloBlog - Todos los derechos reservados.

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
ViniloBlog
Gestionar el Consentimiento de las Cookies
viniloblog.com usa cookies de analítica anónimas, propias para su correcto funcionamiento y de publicidad. Nuestros socios (incluido Google) pueden almacenar, compartir y gestionar tus datos para ofrecer anuncios personalizados. Puedes aceptar o personalizar tu configuración.
Funcional Siempre activo
El almacenamiento o acceso técnico es estrictamente necesario para el propósito legítimo de permitir el uso de un servicio específico explícitamente solicitado por el abonado o usuario, o con el único propósito de llevar a cabo la transmisión de una comunicación a través de una red de comunicaciones electrónicas.
Preferencias
El almacenamiento o acceso técnico es necesario para la finalidad legítima de almacenar preferencias no solicitadas por el abonado o usuario.
Estadísticas
El almacenamiento o acceso técnico que es utilizado exclusivamente con fines estadísticos. El almacenamiento o acceso técnico que se utiliza exclusivamente con fines estadísticos anónimos. Sin un requerimiento, el cumplimiento voluntario por parte de tu Proveedor de servicios de Internet, o los registros adicionales de un tercero, la información almacenada o recuperada sólo para este propósito no se puede utilizar para identificarte.
Marketing
El almacenamiento o acceso técnico es necesario para crear perfiles de usuario para enviar publicidad, o para rastrear al usuario en una web o en varias web con fines de marketing similares.
Administrar opciones Gestionar los servicios Gestionar {vendor_count} proveedores Leer más sobre estos propósitos
Ver preferencias
{title} {title} {title}
No Result
View All Result
  • Noticias
  • Reseña
  • Comics
  • Mundo Asia
  • Videojuegos
  • Música
  • Tecnología

© 2024 ViniloBlog - Todos los derechos reservados.