Site logo

Archived topic

Archive Element Block Contact Blocks

3 replies · Started by troyw on September 7, 2021

Viewing posts 1–4 of 4

Hi team,

I have been using the Content Block Elements as per Leo's video to style my Archives, however I am having a few issues.

Leo's Block Elements Video

I have used this for the Blog Archive and it has worked fairly well, (albeit the blocks are various lengths). Note, there are 4 Columns.

My main issue however is getting this to apply to Post Archives I created using Pods.
The first issue is that in the 'Release Archive' there is only one column, unlike the Blog Archive which has 4. How do I create 4 columns?

My next issue is that I can't get the Artists Title using the 'Dynamic Text Type'. I can get the Title, but can't seem to find how I can grab the Artist name?

Finally, below this I created a button which I am trying to link to the Spotify link I have in the Release Post. Again, i can't seem to find how to select this field from the Release Post?

Thanks

Hi there,

My next issue is that I can’t get the Artists Title using the ‘Dynamic Text Type’. I can get the Title, but can’t seem to find how I can grab the Artist name?

Can you share w/ us how you're associating "Artists title" to the "Release" post type?

This is quite important as this will be the basis on how you're going to pull in the "Artists Title" value associated with the "Release" post type.

Hey Elvin,
Sorry, should have advised this. I am using 'Pods Custom Posts'. As you will see on the website, there are Custom Posts for Artists, Playlists, Releases and Labels. I have to create Content Block Elements for all of these, so knowing where to grab these fields is critical. I know I could build these using Pages and Shortcodes, but I would rather use your Content Block Elements for efficiency and reliability if possible.
Once I get the 'Release' fields, I can build the rest easily.

Thanks

Hi there,

1. For the columns you will need this snippet to make the Blog Columns work on CPTs:

add_filter( 'generate_blog_columns', function( $columns ) {
    if ( 'your_cpt_slug' === get_post_type() && ! is_singular() ) {
        return true;
    }

    return $columns;
} );

Change the your_cpt_slug to the name of your CPT.

2. In Pods you save a new field with a Name - that is the Post Meta Name.
In the Block Element set the Headline Dynamic Data Text Type to Post Meta and add your Name to the field provided.

NOTE: If you intend to use relational fields in PODs then you will need to create a shortcode for that, which can be added inside a Headnline Block if you want GB to apply styles to the content.

This archived topic is closed to new replies.