Posted: April 27, 2018 at 9:30 am
Referring to this link: https://eventespresso.com/wiki/custom-post-types-basic-setup/ I do not see a directory called post-type-samples. What am i missing here? I am vieiwing via FTP. |
|
Hi there, That’s actually some documentation that only applies to Event Espresso 3. In Event Espresso 4, events are custom post types and use the templates within your WordPress theme. More information here: |
|
Thanks, but still a little lost on how to execute this. |
|
Hi there, What is it you are trying to do? The documentation you linked to doesn’t apply to EE4 so we don’t know what you’re trying to do, if you provide more in-depth details of what you are trying o do we can help point you in the right direction. |
|
I want my events to show up as blog posts as well. |
|
Then you want a snippet like this: https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter-events-to-posts.php Which adds the Add that to your themes functions.php file, or preferably a custom functions plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
I have added that code to functions.php file. Should my Espresso events start showing up in blog feed? |
|
They are in there now, but if i want to show that specic category, how do i filter? |
|
Ok i was able to filter it. Hopefully last question.. How can I setup the blog posts to show the date of the event rather than the post date |
|
Usually that involves making an edit to your theme’s archives.php template, but this will vary depending on the way the theme is coded. |
|
I am having some issues getting my Events posts to filter out. Events are showing up as Blog posts. |
|
Edit: i want them to show up as blog posts, and they are. But I cannot seem to filter them out. |
|
Can you explain what you mean by “filter out”? |
|
To only show Events and not all the other posts. |
|
Your site’s /events/ page shows only events and not all other posts. |
|
Yes, i understand that. But I am able to filter out using shortcode a section where I want to show a specific category. I cant seem to make that appear |
|
Can you explain what it means to “filter out using shortcode a section”, and also what exactly “that” is that you want to appear? |
|
On my site, I can use a shortcode on any page to show specific posts based on categories. Since adding the code you all provided for the functions.php file, my Espspsso Events show up in blog list. So, I know they will show up. Just can’t seem to show the specific Events category. |
|
If I understand your comments, you can show a list of events from a specific event category by adding the following shortcode to any page:
|
|
I undestand that too. But when I initially posted, I was trying to figure out how to make a Custom Post Type so espresso events would show up a blog post. Matching the theme layout like all the other blog posts. It does that now. But I can’t seem to filter out just the events. Do you all have programmers i can hire? |
|
Event Espresso staff is not available for hire but you can contract with any of the developers listed here: |
|
The support post ‘Custom Post Types (3)’ 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.