andreacianni
Forum Replies Created
-
I did and now it’s work:
Gone to line 178 of plugins/events-manager/em-posts.php
Changed
rewrite' => array('slug' => 'event-recurring','with_front'=>false)
to
rewrite' => array('slug' => 'events','with_front'=>false)
it’s return
mydomain/events/title-of-the-recurring-event/
automatically rewrited in
mydomain/USER-SETTING/title-of-the-recurring-event-FIRST-DATE/
I’m experiencing the same issue…
mycode is
[events_list category="25" scope="2016-08-01,2017-08-31" recurring="1"]<p><em>#_ATT{trimestre}</em><br /><b>#_EVENTLINK</b><br />#_CUSTOMEXCERPT</p>[/events_list]
and the output is exactly what the shotcode is expected to do
but the output link is mydomain/events-recurring/title-of-the-recurring-event/ send to the homepage.if i manually change the “events-recurring” with the slug i defined in the option (eventi) the page I reach is the first instance of the recurring event
so the problem is adding “recurring-event” in the slug, I suppose.
i’ll try to hack the plugins like in this 3 year old post (https://wordpress.org/support/topic/recurring-events-29?replies=19)
Go to line 178 of plugins/events-manager/em-posts.php
Change
rewrite' => array('slug' => 'event-recurring','with_front'=>false)
to
rewrite' => array('slug' => 'events','with_front'=>false)
Forum: Plugins
In reply to: [My Calendar] MultisiteI’m in the same situation: Main site calendar have to show his event and all the event of the subsite, the subsite has to show only some events of the main calendar.
I’m doing like that:subsite setting: all the event are in the central calendar and the admin can only post in the central calendar
category: I created some category like subsitename1+typeofevent1, subsitename1+typeofevent2 and i assing the category to the event i want to be shown in the subsite1 calendar
in the calendars using shortcode or widget:
in the mail site show all the events
in the subsite1, show only the category subsitename1+typeofevent1 and subsitename1+typeofevent2It’s work for me!
Forum: Fixing WordPress
In reply to: filtering the_categoryI find this solution here, I think it’s work well, and look like very clean!
code to add in the function.php in your theme folder:
function the_category_filter($thelist,$separator=' ') { if(!defined('WP_ADMIN')) { //Category IDs to exclude $exclude = array(1,5); $exclude2 = array(); foreach($exclude as $c) { $exclude2[] = get_cat_name($c); } $cats = explode($separator,$thelist); $newlist = array(); foreach($cats as $cat) { $catname = trim(strip_tags($cat)); if(!in_array($catname,$exclude2)) $newlist[] = $cat; } return implode($separator,$newlist); } else { return $thelist; } } add_filter('the_category','the_category_filter', 10, 2);
if you want to filter more than 2 category, you have to change the last number in the last line of the cove above
take a look here for the add_filter reference