Support

Home Forums Event Espresso Premium HOW TO QUERY EVENT NAME OF SPECIFIC EVENT?

HOW TO QUERY EVENT NAME OF SPECIFIC EVENT?

Posted: July 15, 2014 at 1:40 am


Ferdie Santiago

July 15, 2014 at 1:40 am

Hi guys, i am having problem on how to display the event name and event date in a specific event by using query_post();

please share, i need your help thanks.


Ferdie Santiago

July 15, 2014 at 3:11 am

anyone can help me? please thanks in advance.


Dean

July 15, 2014 at 3:38 am

Hi,

Here is an example query set up for EE4: https://gist.github.com/joshfeck/e3c9540cd4ccc734e755

You could use WP_Query, but the above query uses core EE4 functions that help in getting the data.


Ferdie Santiago

July 16, 2014 at 7:52 pm

Hi, thank you for the reply.

how about the attachment sir?
can i use the_post_thumbnail for it?
thank you.

<?php
// Must be inside a loop.
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
?>

<?php
$args = array(
‘post_type’ => ‘attachment’,
‘post_mime_type’ => ‘image’,
‘post_parent’ => $post->ID
);
$images = get_posts( $args );

?>


Ferdie Santiago

July 16, 2014 at 10:10 pm

thank you again, the issue was already been resolved.

The support post ‘HOW TO QUERY EVENT NAME OF SPECIFIC EVENT?’ 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