• Resolved JakeFk

    (@jakefk)


    Hi, thanks for this plugin. I’m trying to do something rather simple but my PHP knowledge is limited, and I can’t seem to get it to work. I want to embed the following code on a custom WP page template which would display a list of events created by the event owner- which is the same as page’s author:

               <?php
                $authorusername = get_the_author_meta('user_nicename');
                
                echo EM_Events::output(array(
                            'owner'=> $authorusername,
                            'limit'=>10, 
                            'pagination'=>1)); 
                ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP code to filter by ‘owner’’ is closed to new replies.