I have a question about this page:
hidden link
I made cpt for adding employes (medewerkers in dutch) in this company. You can see an example here:
hidden link
how can I get them like in this image:
hidden link ???
Dear Dido,
You need to create a View for employees and set the View Layout to Grid with 2 columns. Next you can add the Content Template you have as a field in that View.
Finally, this View you created needs to be inserted as a shortcode in this page content:
hidden link
Please let me know if there is anything else that I can assist you with.
Regards,
Caridad
Hi Caridad,
I have activated Views now because I was not using it yet but it seems very complicated to me.
I made a view template with this code
<div class="face">
<?php echo(types_render_field("email", array("class"=>"mail"))); ?>
<?php echo(types_render_field("pasfoto", array("class"=>"pas", "alt"=>"$titel", "title"=>"$titel",
"width"=>"70","height"=>"92"))); ?>
<?php echo(types_render_field("naam", array("class"=>"naam"))); ?>
<?php echo(types_render_field("functie", array("class"=>"functie"))); ?>
<?php echo(types_render_field("functie-b", array())); ?>
</div>
and this is what it looks hidden link
What is the next step?
Dear Dido,
You cant use PHP in a Content Template, just HTML and shortcodes. Lets try and do this in two steps:
1) Create a View (not a Content Template) that will list medeworkers. For now just add the field "title with a link".
Insert this view into this page by clicking the V icon: hidden link
This is a generic guide for doing this: https://toolset.com/documentation/user-guides/views/
2) As a second step, you can customize the look a bit more by replacing the "title with a link" in your View with a Content Template.
This View template would have shortcodes to display the picture, the name, the title and the email.
This is a general guide for this part:
https://toolset.com/documentation/user-guides/using-a-view-template-in-a-view-layout/
Please let me know if there is anything else that I can assist you with.
Regards,
Caridad
Thank you, I do now understand this a little better. It works.
Kind regards,
Dido