Support » Plugin: Foyer - Digital Signage for WordPress » Other Custom Page Types like “Events Manager”

  • Resolved stimsmot

    (@stimsmot)


    Hi there,

    I recently made a website for our ‘local theatre’. Next phase: the television screens.
    How can I use other custom post types? I use “events manager” for managing the events.
    Or maybe use the “Members” post type to present the people at the bar?
    I’m looking for the same functionality as the ‘blog articles’: pick a category and define how many posts you want to show.

    Would be great! Tom

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Menno Luitjes

    (@mennolui)

    Hoi Tom!, @stimsmot

    At the moment there is no Events Manager slide format that displays each event from the Events Manager plugin as a slide. But as you said Foyer has a Recent Posts slide format built in, that does almost that. And there is even an Upcoming Events slide built in that works with the Theater for WordPress plugin (needs to be installed), even closer to what you need.

    Foyer can be extended by coding your own slide formats. It’s not a lot of work to build an Events Manager slide format, because you can copy 80% from the Upcoming Events (Theater for WordPress) slide format. It is a bit complex though, and you’ll have to go over the Foyer plugin code to try and understand how it is done as I have not written a developer guide for Foyer yet.

    How comfortable are you with PHP, coding WordPress template loops, and using WordPress filters/actions?

    Relevant code is in these files:
    https://github.com/mennolui/wp-foyer/blob/master/includes/class-foyer.php#L67
    https://github.com/mennolui/wp-foyer/blob/master/includes/class-foyer-slide-formats.php#L252
    https://github.com/mennolui/wp-foyer/blob/master/admin/class-foyer-admin-slide-format-upcoming-productions.php
    https://github.com/mennolui/wp-foyer/blob/master/public/templates/slides/upcoming-productions.php

    Let me know if this is something you’ll be able to build yourself. Otherwise I could build this for you as a small paid project.

    Groeten,
    Menno

    Thread Starter stimsmot

    (@stimsmot)

    I´ll give it a try. Will share the results here

    Thread Starter stimsmot

    (@stimsmot)

    I’m stuck on ‘upcoming-productions.php’ line 31

    I duplicate this file to ‘upcoming-events.php’ (to display events from https://wp-events-plugin.com/)

    Line 31:
    foreach ( $wp_events->events->get( $events_args ) as $event ) {

    I’m not familiar what should be there on line 31. This doesn’t work…

    Backend fatal error: PHP Fatal error: Uncaught Error: Call to a member function get() on null in
    /foyer/public/templates/slides/upcoming-events.php:31\nStack trace:\n#0
    /foyer/public/class-foyer-templates.php(39): include()\n#1
    /foyer/public/templates/partials/slide.php(11): Foyer_Templates::get_template(‘slides/upcoming…’)\n#2
    /foyer/public/class-foyer-templates.php(39): include(‘/home/u30309p64…’)\n#3
    /foyer/public/templates/partials/channel.php(22): Foyer_Templates::get_template(‘partials/slide….’)\n#4
    /foyer/public/class-foyer-templates.php(39): include(‘/home/u30309p64…’)\n#5 /home/u3030 in
    /foyer/public/templates/slides/upcoming-events.php on line 31\n

    Plugin Author Menno Luitjes

    (@mennolui)

    Hi @stimsmot,

    That line calls some methods that belong to the Theater for WordPress plugin. When working with the Events Manager plugin I’m sure that line (and others in upcoming-events.php) should be totally different. It takes some knowledge of how the PHP code of the Events Manager plugin works. Did you manage to get this working?

    If not I could build this for you as a small paid project. Shoot me a line here with your contact details if you want: https://foyer.tv/send-info/

    Best,
    Menno

    Thread Starter stimsmot

    (@stimsmot)

    Hi Menno, still no success. So would be great if you can help. I filled in the contact form.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Other Custom Page Types like “Events Manager”’ is closed to new replies.