• Resolved Hannah

    (@isakm)


    Hi,
    I’m using customized versions of events-list.php and event-single php, and I have a question regarding each.

    1. I copied events-list.php to themefolder/plugins/events-manager/templates/ and made some cosmetic changes to it (just a few divs etc, didnt remove any code). I then used the admin format options to make additional changes to the event list page. The problem I’ve having is that it’s taking it’s styling from what think is single.php, for some reason. If I move events-list.php to the root of the theme folder instead, then all looks well cosmetically, except the events list filtering options isn’t working at all.

    2. When I copy event-single.php to themefolder/plugins/events-manager/templates/ it’s also fetching some code from page.php or single.php, whichever is chosen in the options panel (which I really wished it didn’t). But if I move it to the theme root and chose events-single.php as the template (in the wordpress page I chose to be the single event page) it’s using some other template, but it sure isn’t my modified events-single.php template.

    I just want to have a unique look for each of these pages that has nothing to do with page.php or single.php or any other file for that matter.

    Would really appreciate some help. Thanks for a great plugin.

    http://wordpress.org/extend/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 15 total)
  • 1. how about adding the css class or id name of the events list or events search to your theme style.css instead?

    2. you can also try to recopy your theme single.php and then rename it to single-event.php

    Thread Starter Hannah

    (@isakm)

    1. I already have styling for .em-events-search in my themes style.css. Is that what you mean?

    2. Praise the gods it worked! 🙂 Thanks friend.
    <?php the_author(); ?> isn’t returning anything on this page now though. Any ideas?

    Thanks a lot for taking your time to help out.

    Thread Starter Hannah

    (@isakm)

    Did some research on the <?php the_author(); ?> issue and it took me 10 secs to find out that it can’t be used outside the loop. Sorry about that 🙂

    actually, you can try this link – http://wordpress.org/support/topic/events-manager-eventslocation-pages-cant-get-sidebar?replies=22 used my snippet at the bottom and then just modify the div and other elements according to your single.php formats

    also, you can used placeholder #_CONTACTNAME inside it. e.g. <?php echo $EM_Event->output("#_CONTACTNAME"); ?>

    http://wp-events-plugin.com/documentation/placeholders/

    Thread Starter Hannah

    (@isakm)

    <?php echo $EM_Event->output( get_option('dbem_single_event_format') ); ?>

    That snippet? If I create an event list with this, how would I go about adding the filtering/search menu?

    Thread Starter Hannah

    (@isakm)

    I feel like this shouldn’t be too hard to accomplish. All I want to do is output a filterable event list that doesn’t take its styling from single.php.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    try

    $args = array(); //add search attributes here
    em_locate_template('templates/events-list.php', true, array('args'=>$args));

    I suggest you open up a new thread for different questions, the orginal question is resolved so we might skip it

    Thread Starter Hannah

    (@isakm)

    It wasn’t totally resolved actually. I would really appreciate it if you could give me an example of how to add search attributes to the array. I’m not a back end developer. I tried adding the code above as is to events-list.php in my themes root, and it looks good but the functionality isn’t working. I guess it needs some attributes? Thanks.

    agelonwl

    (@angelonwl)

    I tried adding the code above as is to events-list.php in my themes root

    have you tried this link for templating? http://wp-events-plugin.com/documentation/using-template-files/

    e.g.

    $args = array('category'=>'1','location'=>'1');

    here’s some attributes you can use http://wp-events-plugin.com/documentation/event-search-attributes/

    Thread Starter Hannah

    (@isakm)

    have you tried this link for templating? http://wp-events-plugin.com/documentation/using-template-files/

    Yes, if I use that method events-list.php takes its styling from single.php, and it doesn’t really work for my site.

    I tried adding search attributes to the array, but the problem simply is that the filtering options doesn’t seem to work. I have no clue why. The events are displaying correctly, it’s just that nothing happens when I try to filter or search them.

    agelonwl

    (@angelonwl)

    do you have sample link or screenshots for us to see?

    Thread Starter Hannah

    (@isakm)

    Here is a link to the course list page. As you can see the filter options does nothing.

    agelonwl

    (@angelonwl)

    hi,

    I tried your sample link however all your event belongs to one location/town only which is Göteborg and can you add category name to easily test/analyze?

    Thread Starter Hannah

    (@isakm)

    Hey, I added another town as well as now displaying the category name under the event name.

    Thread Starter Hannah

    (@isakm)

    Any ideas?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘2 questions’ is closed to new replies.