Posted: February 19, 2017 at 4:59 am
|
Hello, I customize the template “content-espresso_people-details.php” ant I have genesis framework. I don’t want to display defaults title, meta information and the content. https://gist.github.com/lorenzocaum/782a834950be643e10f961c520214933 2) I want to change Jahnichen Jacques in Jacques Jahnichen ? So I c’ant use the default title post. How can I have people->name and people->nickname ? Thanks a lot, |
The part in your template where you have:
You can edit the permalink by clicking on the edit button next to the permalink. You can also change the post title by editing the first field on the people editor page. |
|
|
If I remove ‘get_the_content()’ and ‘genesis_do_post_title()’ I still have The Title and The Content on this page. I have to use CSS to hide It. I d’ont want to use the post title, but I want to get “PER_fname” how can I do it ? I also want “People type”, how can I dot that ? Have a good day, |
|
Here is an example where my CSS doesn’t work |
It’s not clear from the code that you posted what’s happening then. Can you post the relevant templates into a gist or paste bin? |
|
|
https://gist.github.com/JacquesJahnichen/c182fb6b7ae58f680db217c9483e1188 |
Hi there, I think the problem is you’re only looking at the template that adds to the loop. You probably also have a single.php template, and that’s the template you’ll need to customize. What you can do actually is make a copy of the single.php template, then rename it to be single-espresso_people.php. Then you can make your customizations to that template. |
|
|
Yes you right ! Thanks a lot 🙂 Last question “How can I get “PER_fname” ? And “People type” taxonomy ? |
The EE_Person object will be included within $post, so you can do:
Or using the EE Models you can use:
Which does some additional checking for you. Now $person can be used to output all of the details for that person, so:
echo $person->fname();
($people_types will be an array taxonomies) I’d recommned using Kint Debugger and wrapping $person in |
|
good afternoon, Is there a way for me to find all the field names for the espresso_people people type ? Any help would be greatly appreciated Thanks |
|
You don’t need to use
Sure there is, it’s the method I posted right before your reply:
Means on your page Run Take a look here for more info on our models: https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System |
|
Thanks a million, Tony. This did the trick and allowed me to see all the methods.
</div> |
|
The support post ‘EE4 People – Custom page Template’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.