Anything that comes out of this query– $event = Ai1ec_Events_Helper::get_event($post->ID);
— will need the $event->
part. That is how you access data from an object. That is just pure PHP.
I don’t know why some of the values in that answer, like $contact
, are not prefixed with $event->
but I am assuming those variables do not come from from that query.
Add var_dump($event);
immediately after $event = Ai1ec_Events_Helper::get_event($post->ID);
and you can see what information is in that object.
Related Posts:
- Pagination not working with custom loop
- How to use a custom post type as front page?
- Random post, once per day
- get attachments for all posts of particular post type
- how can I create a calendar for a cpt, using get_calendar or other
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- SQL to update custom post taxonomies
- Query multiple taxonomy in Custom Post Type
- Querying Posts by Taxonomy From Alternate Network Site
- Custom Search | Wrong output & question
- Get the most popular terms for a custom post type
- Query by 2 values of a repeater ACF field
- show posts only on homepage but using custom post type and taxonomy for query posts via url
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Include both default and Custom Post Type in query modified inside pre_get_posts
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Include different loop templates in search query
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Automatically adding meta data to posts or multiple query help
- Dynamic iCal generator outside/inside wordpress
- Custom Post Type order by modified date and custom meta field issue
- Conditional to modify query results
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Selecting New & Edit Page for Custom Post Types
- Querying Term Posts in Loop
- Custom Post type is being ignored in query
- Am unable to reset a query properly
- Custom post type redirected to homepage – how to debug
- Get next and previous 3 posts in a term in single post page
- Making certain categories of CPT not publicly queryable
- Search / Filter posts on Title/Content OR Tags
- Meta query for custom post type ignored in main query
- Querying Two Custom Post Types with OR Not Working
- How do I move/order posts with a tag to the end?
- Specific query for custom post type
- Display post content with respect to its title?
- Prioritize posts in query by meta keys?
- WP_Query orderby and tax_query
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Different Ways to Query Custom Post Types?
- Integrate Custom Post Type Events into Calendar
- Query multiple taxonomies with pre get posts
- Query Custom Post Types with checkboxes
- show all custom posts types in home page
- List of child custom post types lists all custom post types
- Make (custom) post type accessible only by custom query
- Graphql: Unable to query (where:{author}) for custom post type
- Returning a custom content types with meta values
- Custom Query: If One Post Object Field Value Is The Same As Another
- Custom Post Type not showing in main loop
- Hide text if query has no posts
- How do I get the index for a custom post?
- Create query for both custom post type and category
- Filtering custom posts by custom fields (ACF) [closed]
- Custom taxonomy query showing more than 4 posts
- Query Custom Post by taxonomy multiple categories
- Custom Post type showing up in loop, regular posts are not showing up
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- How to divide Subcategories into pages of parent category wordpress
- Update query based on CPT / Post Type, show all sorted by date
- WP Query: If field X is empty, show posts based on field Y
- Check that a slug is present in the get_terms request
- Shortcode with loop stacks output
- Displaying all posts by category and showing content on click
- Custom post type order by post_title
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How do I query with multiple custom fields orderby in same column?
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- pagination for a custom query
- Get posts of an specific term of a custom taxonomy
- Conditional posts in WP_query for search
- Display year value before a set of posts
- Help ordering custom query by Title, Ascending
- How to add parameters for custom post type
- date archive future posts
- Is it possible to add query parameters on the archive page?
- meta query always fails even if data is correct
- How do I get a nested query to only display content that the main query outputed
- Query Only Show Text on Posts With Certain Taxonomy Tag
- Multiple Queries and Loops within CPT Archive
- Query Posts From Multiple Post Types
- Pagination not working with custom loop
- how to limit query_post to first page?
- Pagination not working with custom loop
- Pagination not working with custom loop
- Post content stays the same but permalink changes ?
- Pagination not working with custom loop
- Retrieve post data via WPDB class
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Listing custom post type items from a couple of custom taxonomies
- Pagination not working with custom loop
- Show custom posts with a specific “custom TAXONOMY slug” on startpage
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Posts 2 Posts: query connected — orderby problem
- custom post-type query just returns two posts
- Order custom post type is beign ignored
- Display all child posts in a custom post type, grouped by a custom taxonomy site
- Load posts via AJAX without draft status