Support

Home Forums Event Espresso Premium Custom Post Types (3)

Custom Post Types (3)

Posted: April 27, 2018 at 9:30 am

Viewing 20 reply threads


adminCALS

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.


Josh

  • Support Staff

April 27, 2018 at 9:34 am

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:

https://eventespresso.com/wiki/ee4-custom-post-types/


adminCALS

April 27, 2018 at 9:41 am

Thanks, but still a little lost on how to execute this.


Tony

  • Support Staff

April 27, 2018 at 10:01 am

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.


adminCALS

April 27, 2018 at 10:05 am

I want my events to show up as blog posts as well.


Tony

  • Support Staff

April 27, 2018 at 10:17 am

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 espresso_events post type to any query for posts.

Add that to your themes functions.php file, or preferably a custom functions plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


adminCALS

April 27, 2018 at 10:54 am

I have added that code to functions.php file.

Should my Espresso events start showing up in blog feed?


adminCALS

April 27, 2018 at 11:01 am

They are in there now, but if i want to show that specic category, how do i filter?


adminCALS

April 27, 2018 at 11:09 am

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


Josh

  • Support Staff

April 27, 2018 at 12:07 pm

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.


adminCALS

May 7, 2018 at 11:03 am

I am having some issues getting my Events posts to filter out. Events are showing up as Blog posts.


adminCALS

May 7, 2018 at 11:04 am

Edit: i want them to show up as blog posts, and they are. But I cannot seem to filter them out.


Josh

  • Support Staff

May 7, 2018 at 11:37 am

Can you explain what you mean by “filter out”?


adminCALS

May 7, 2018 at 11:40 am

To only show Events and not all the other posts.


Josh

  • Support Staff

May 7, 2018 at 11:54 am

Your site’s /events/ page shows only events and not all other posts.


adminCALS

May 7, 2018 at 12:01 pm

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


Josh

  • Support Staff

May 7, 2018 at 12:28 pm

Can you explain what it means to “filter out using shortcode a section”, and also what exactly “that” is that you want to appear?


adminCALS

May 7, 2018 at 12:36 pm

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.


Josh

  • Support Staff

May 7, 2018 at 12:53 pm

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:

[ESPRESSO_EVENTS category_slug=your_event_category_slug]


adminCALS

May 7, 2018 at 12:58 pm

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?


Josh

  • Support Staff

May 7, 2018 at 1:02 pm

Event Espresso staff is not available for hire but you can contract with any of the developers listed here:

https://eventespresso.com/developers/event-espresso-pros/

Viewing 20 reply threads

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.

Event Espresso