Forum Replies Created
-
AuthorPosts
-
August 28, 2016 at 10:12 am in reply to: Exclude Venues and Organizers from WordPress Search #1156876KevinParticipant
Thanks for taking the time to put this together. All seems to be working now. I appreciate your help with this.
August 24, 2016 at 2:43 pm in reply to: Exclude Venues and Organizers from WordPress Search #1155558KevinParticipantAlright, so here where I’m at.
Your last response, to modify the search query, works but it’s not ideal. Rather than limiting what’s search I have to state what’s included. Could become a pain depending on the number of post types to keep included in the search. It’s an option though. So Thank You!
But…
Back to your initial suggestion, this function:
add_action( 'init', 'update_my_custom_type', 99 ); function update_my_custom_type() { global $wp_post_types; if ( post_type_exists( 'my-custom-type' ) ) { // exclude from search results $wp_post_types['my-custom-type']->exclude_from_search = true; } }
I have it functioning for my CPTs. I think it was a cache problem initially of why it wasn’t working.
With that said, it’s still not working for
tribe_venue
* and I think I found the issue:on line
1396
of this file/wp-content/plugins/events-calendar-pro/src/Tribe/Main.php
the following exists:$venue_args['exclude_from_search'] = false;
It appears as if that line is taking precedent over the original function suggested. If I modify that line to include
true
as the option it will exclude the search results, obviously.Is there a way to include a modified Main.php file in my template folder (like I would have with files to override the standard calendar layout) so that upon plugin update I can keep any modifications I need to make to line 1396 in that file? If so, what might the folder structure look like?
* note: it appears that this was never an issue for tribe_organizer, I was simply including that in the original post because I assumed it worked the same way.
August 24, 2016 at 4:12 am in reply to: Exclude Venues and Organizers from WordPress Search #1155269KevinParticipantIdeally I’d like to not use an additional plugin to avoid all of the potential issues and bloat that comes along with it.
With that said, this isn’t working either, but it doesn’t work for my other CPTs either.
I’ll have to do some additional digging, but at the moment the only way for me to effectively exclude CPTs from searches is to include
'exclude_from_search' => true,
initially when the CPT is declared and not through other means. This works for other CPTs I have control over.August 22, 2016 at 1:57 pm in reply to: Exclude Venues and Organizers from WordPress Search #1154542KevinParticipantYa, I caught that post and have tried it, even for just one of those CPTs but no luck.
Tried with a clean install of wordpress, base theme and the plugin but no luck.
Hmmm.
KevinParticipantThanks. This solved it.
KevinParticipantSee the attached screenshot.
I’ve tried both and they provide the same results.
I’ve disabled all other plugins to see if there were some odd conflicts, but there are none.
I’ve also reviewed the file at:
/wp-content/plugins/the-events-calendar/src/functions/template-tags/venue.php
and the functions seem to be correct there (I haven’t altered this file).So I can only assume there’s a function elsewhere which is conflicting.
KevinParticipantI should note that the venues.php file I am referring to is in:
modules/meta/venue.php
July 6, 2016 at 6:12 pm in reply to: To begin using Events Calendar PRO, please install the latest version #1136353KevinParticipantIt looks like an update was _just_ pushed within the last couple of hours for the base Events Calendar Plugin. As of the time I posted my issue v4.2.1.1 was the latest version. An update was pushed only 3hr ago it looks like.
All is working now.
KevinParticipantSystem details attached.
Wordpress: 4.5.2
Events Calendar: 4.1.4
Events Calendar Pro: 4.1.3local MAMP server.
Issue happens in Safari as well as with a duplicate install on a live web server.
It’s specifically the ‘Display’ tab/page within the Events Calendar settings page. None of the settings on this tab/page will display the updated/current values.
Nothing private about them, so here’s the system information from the help tab:
HOME URL
http://bookstore:8888
SITE URL
http://bookstore:8888
INSTALL KEYS
events-calendar-pro = 875bd328a5f4b2e6737d854dabdba34eb9039d36
WORDPRESS VERSION
4.5.2
PHP VERSION
5.5.10
PLUGINS
The Events Calendar PRO version 4.1.3 by Modern Tribe, Inc.(http://m.tri.be/20)
The Events Calendar version 4.1.4 by Modern Tribe, Inc.(http://m.tri.be/1x)
NETWORK PLUGINS
–
MU PLUGINS
SSO version 0.1 by Garth Mortensen, Mike Hansen
THEME
Book Store
MULTISITE
–
SETTINGS
schema-version = 4.1.4
recurring_events_are_hidden = exposed
previous_ecp_versions = Array
(
[0] => 0
)
latest_ecp_version = 4.1.4
disable_metabox_custom_fields = hide
pro-schema-version = 4.1.3
last-update-message = 4.1.4
earliest_date = 2016-06-06 08:00:00
earliest_date_markers = Array
(
[0] => 12239
)
latest_date = 2016-07-19 17:00:00
latest_date_markers = Array
(
[0] => 12256
)
stylesheetOption = tribe
tribeEventsTemplate =
tribeEnableViews = Array
(
[0] => photo
)
viewOption = photo
tribeDisableTribeBar = 1
hideLocationSearch = 1
hideRelatedEvents = 1
week_view_hide_weekends = 1
monthEventAmount = 3
enable_month_view_cache =
dateWithYearFormat = F j, Y
dateWithoutYearFormat = F j
monthAndYearFormat = F Y
weekDayFormat = D jS
dateTimeSeparator = @
timeRangeSeparator = –
datepickerFormat = 0
tribeEventsBeforeHTML =
tribeEventsAfterHTML =
donate-link =
postsPerPage = 999
liveFiltersUpdate =
hideSubsequentRecurrencesDefault =
userToggleSubsequentRecurrences =
recurrenceMaxMonthsBefore = 24
recurrenceMaxMonthsAfter = 24
showComments =
showEventsInMainLoop =
eventsSlug = events
singleEventSlug = events
multiDayCutoff = 00:00
defaultCurrencySymbol = $
reverseCurrencyPosition =
embedGoogleMaps = 1
geoloc_default_geofence = 25
geoloc_default_unit = kms
embedGoogleMapsZoom = 10
debugEvents =
tribe_events_timezone_mode = event
tribe_events_timezones_show_zone =
WORDPRESS TIMEZONE
America/Toronto
SERVER TIMEZONE
UTC
COMMON LIBRARY DIR
/Users/kevin/Dropbox/Brick Books/_site/_new/wp-content/plugins/the-events-calendar/common/src/Tribe
COMMON LIBRARY VERSION
4.1.2KevinParticipantI’m having the same issues.
I downloaded the plugin today 2016-05-20 including the PRO version and having the same issues saving settings.
I can save the settings, and they apply and get used functionally, but they don’t display/keep on the settings page.
This is slightly annoying because if I go to update any single setting in the settings page I have to remember to update ALL of the settings to what I last had them set, unless they essentially re-set.
Not urgent at the moment but as I migrate my clients site to live (where they can update settings) it will be an issue.
Would love a fix.
-
AuthorPosts