• Resolved greigcooke

    (@greigcooke)


    Hi,

    I need to create a pages for specific scope searches. i.e tomorrow, next month etc.

    i.e – I have a link named ‘tomorrow’ under the mini calendar and I need to link that to a page that outputs only the events on tomorrow.

    I understand the code i would need to use on the page is:

    echo EM_Events::output(array('scope'=>'tomorrow', 'limit'=>10, 'pagination'=>1));

    But, I don’t know what to call the page in the templates and how to link to it.

    Please help if you can.

    Thanks,

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    A much easier way to do this would be to use the shortcode within normal pages.

    If you’re not able to do that, you’d need to create a template for each scope, then assign the template to a new page using the template panel on the Add / Edit Page screen.

    Thread Starter greigcooke

    (@greigcooke)

    Of course. Silly me. I didn’t think to add the code to a normal wordpress page.

    Thanks. I’ll post as resolved once I have looked at this over the next few days.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘page for custom scope’ is closed to new replies.