• blevley

    (@blevley)


    Hello,
    I really like this plugin, but I’m looking for a specific functionality. What I need to do is access the event information from Events Manager, especially the event_start_date.
    This information is not in the standard WordPress tables, but I guess it would be quite simple to extend the functionality to retrieve that information.

    It’s probably not really useful to add this functionality to the plugin, could you maybe point me in the right direction to resolve this issue?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brecht

    (@brechtvds)

    That should be possible with some custom code. You could add this to your theme’s functions.php file to alter the output of the grid item title, for example:

    function wpupg_events($output, $post, $block) {
        // In the $post variable you have the ID available that you can use to get the event information and alter the $output
        return $output;
    }
    apply_filters( 'wpupg_output_grid_block_post-title', 'wpupg_events', 10, 3 );

    Brecht

    Thread Starter blevley

    (@blevley)

    Thanks for the reply, I’ll see if I can get it to function.
    The example you posted does not change anything, but I’ll dig a bit deeper into this.

    Plugin Author Brecht

    (@brechtvds)

    The example I posted is not supposed to change anything. It returns $output without altering it in any way. I was just showing you how you could alter it if you wanted to.

    Brecht

    • This reply was modified 8 years ago by Brecht.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show Events Manager events’ is closed to new replies.