I am using the Post Grid for multiple content types and so far it works well for posts and the portfolio projects, but then I found out that the company will be having 110 employees and constantly adding more/changing them up.
So I created a custom post type (CPT) with ACF, and got the Post Grid to show the image and name, but I need to show the name, position and credentials for each.
I tried using the excerpt, but the position and credentials need to be on separate lines.
I've been trying several options such as creating my own custom element, but I'd rather use Salient's markup, and not override too much so that it doesn't break when there's an update.
I see that I can override the loop-markup.php in my child theme's functions.php, but I don't want to override everything in the markup. I just want to add two ACF fields in the content area.
I've used Salient before, but this is the first time I'm updating the functions.php file to make some customizations.
Additional Requests
I've also had additional requests
to use the flip-box animation for the images (nice-to-have), and
there might need some custom reordering for the leaders and board members, but I might just use Team Member for that because there won't be that many.
Still... I would like to be consistent and just use the post-grid, but make sure nothing breaks when the theme is updated in the future.
This integration requires code customization which is beyond our scope of support as this is not an integration service that is available with Salient.
I request you get the services of a private developer to assist you better.
Ah well, I was hoping for a bit of a nudge in a direction or maybe someone else had suggestion, but I realized I was overthinking it since they didn't want links out.
Creating a custom element worked, so I kept it simple with my own flexbox CSS, and I was able to add the shortcode of the flipbox into my custom element template.
<?php
//check for a featured image
if ( get_the_post_thumbnail() ):
$personimgid = get_post_thumbnail_id();
else :
$personimgid = '183';
endif;
echo do_shortcode( '[nectar_flip_box image_url_1="' . $personimgid . '" text_color="dark" icon_color="accent-color" image_url_2="183" text_color_2="dark" h_text_align="left" v_text_align="top" image_loading="default" flip_direction="horizontal-to-left"][/nectar_flip_box]' );
?>
So far it looks great, and I'll have to check ACF support about grabbing the second image for flipbox, but at least I have something to go on. Thanks for having these shortcodes!
I am using the Post Grid for multiple content types and so far it works well for posts and the portfolio projects, but then I found out that the company will be having 110 employees and constantly adding more/changing them up.
So I created a custom post type (CPT) with ACF, and got the Post Grid to show the image and name, but I need to show the name, position and credentials for each.
I tried using the excerpt, but the position and credentials need to be on separate lines.
I've been trying several options such as creating my own custom element, but I'd rather use Salient's markup, and not override too much so that it doesn't break when there's an update.
I see that I can override the loop-markup.php in my child theme's functions.php, but I don't want to override everything in the markup. I just want to add two ACF fields in the content area.
I've used Salient before, but this is the first time I'm updating the functions.php file to make some customizations.
Additional Requests
I've also had additional requests
Still... I would like to be consistent and just use the post-grid, but make sure nothing breaks when the theme is updated in the future.
Thanks for any suggestions!
Hi there,
Thanks for choosing Salient.
This integration requires code customization which is beyond our scope of support as this is not an integration service that is available with Salient.
I request you get the services of a private developer to assist you better.
Thanks.
Ah well, I was hoping for a bit of a nudge in a direction or maybe someone else had suggestion, but I realized I was overthinking it since they didn't want links out.
Creating a custom element worked, so I kept it simple with my own flexbox CSS, and I was able to add the shortcode of the flipbox into my custom element template.
So far it looks great, and I'll have to check ACF support about grabbing the second image for flipbox, but at least I have something to go on. Thanks for having these shortcodes!