Aldrin_PACC
Forum Replies Created
-
so I tried adding that line of code above and it is still not excluding the events from the main page. Any other suggestions or ideas on why this not working? All my caches have been cleared
This is what my current events-list.php file looks like. Am I doing something wrong?
<?php
/*
* Default Events List Template
* This page displays a list of events, called during the em_content() if this is an events list page.
* You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need.
* You can display events however you wish, there are a few variables made available to you:
*
* $args – the args passed onto EM_Events::output()
*
*/
$args[‘category’] = “-13,-12,-8,-16,-9,-15,-11,-14,-10”;$args = apply_filters(’em_content_events_args’,);
if( get_option(‘dbem_css_evlist’) ) echo “<div class=’css-events-list’>”;
echo EM_Events::output( $args );
if( get_option(‘dbem_css_evlist’) ) echo “</div>”;
Sure can!
<?php
/*
* Default Events List Template
* This page displays a list of events, called during the em_content() if this is an events list page.
* You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need.
* You can display events however you wish, there are a few variables made available to you:
*
* $args – the args passed onto EM_Events::output()
*
*/
$args[‘category’] = $_REQUEST[‘-13,-12,-8,-16,-9,-15,-11,-14,-10’]$args = apply_filters(’em_content_events_args’,);
if( get_option(‘dbem_css_evlist’) ) echo “<div class=’css-events-list’>”;
echo EM_Events::output( $args );
if( get_option(‘dbem_css_evlist’) ) echo “</div>”;
HI,
I have the same request as the OP and I followed the documentation regarding template files and ive added the ” $args[‘category’] = “-13”; ” to my events-list.php file and I am unable to exclude events in that category from the main events list.
I am a total n00b when it comes to PHP and fairly new to WP. Is there a specific way I am supposed to add that code to the PHP file? Ive read some of the documentation but a lot of it is beyond my current knowledge.
any help would be awesome!
Thanks!