darrinb
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] 📣 The Events Calendar 4.6.10@hollinlanewebmaster If you look at my thread, you’ll find a solution:
https://wordpress.org/support/topic/latest-update-is-ignoring-custom-url/
(For some reason the code didn’t format.)
Be sure to re-save permalink settings.
Forum: Plugins
In reply to: [The Events Calendar] Latest Update is Ignoring Custom URLHere’s the gist: https://gist.github.com/dboutote/d06d3d08c07bc8261210f24201e5f866
Forum: Plugins
In reply to: [The Events Calendar] Latest Update is Ignoring Custom URLSo I discovered the issue. In the
Tribe__Events__Rewrite
class there is a method calledget_bases()
which sets the slug bases for custom permalinks.In earlier versions of TEC, the archive base was set by getting the option saved in Events >> Settings >> Events URL slug:
`
$bases = apply_filters( ‘tribe_events_rewrite_base_slugs’, array(
‘month’ => array( ‘month’, $tec->monthSlug ),
‘list’ => array( ‘list’, $tec->listSlug ),
‘today’ => array( ‘today’, $tec->todaySlug ),
‘day’ => array( ‘day’, $tec->daySlug ),
‘tag’ => array( ‘tag’, $tec->tag_slug ),
‘tax’ => array( ‘category’, $tec->category_slug ),
‘page’ => (array) ‘page’,
‘all’ => array( ‘all’, $tec->all_slug ),
‘single’ => (array) Tribe__Settings_Manager::get_option( ‘singleEventSlug’, ‘event’ ),
‘archive’ => (array) Tribe__Settings_Manager::get_option( ‘eventsSlug’, ‘events’ ),
‘featured’ => array( ‘featured’, $tec->featured_slug ),
) );
`
In the new version it’s setting “events” as the slug regardless of what you save in your Events Options:
`
$bases = apply_filters( ‘tribe_events_rewrite_base_slugs’, array(
‘month’ => array( ‘month’, $tec->monthSlug ),
‘list’ => array( ‘list’, $tec->listSlug ),
‘today’ => array( ‘today’, $tec->todaySlug ),
‘day’ => array( ‘day’, $tec->daySlug ),
‘tag’ => array( ‘tag’, $tec->tag_slug ),
‘tax’ => array( ‘category’, $tec->category_slug ),
‘page’ => array( ‘page’, esc_html_x( ‘page’, ‘The “/page/” URL string component.’, ‘the-events-calendar’ ) ),
‘single’ => array( ‘event’, $tec->rewriteSlugSingular ),
‘archive’ => array( ‘events’, $tec->rewriteSlug ),
‘featured’ => array( ‘featured’, $tec->featured_slug ),
) );
`
The solution:
`
function filter_tribe_bases( $bases = array() ){$rewriteSlug = sanitize_title( Tribe__Settings_Manager::get_option( ‘eventsSlug’, ‘events’ ) );
$bases[‘archive’] = array( $rewriteSlug );return $bases;
}
add_filter( ‘tribe_events_rewrite_base_slugs’, ‘filter_tribe_bases’ );
`
Forum: Plugins
In reply to: [Advanced Posts Widget] Custom Taxonomy does not show upThis plugin builds out the taxonomy selection in the following order:
- It first determines what post types are registered on the site.
- Then it loops through each post type to determine which taxonomies are registered with each post type.
- Then it builds a select for each taxonomy it found.
If you’re not seeing the taxonomies registered through your theme it could be either that the theme isn’t registering them correctly, or that they’re not attached to a post type.
Which theme are you using?
Forum: Plugins
In reply to: [Advanced Categories Widget] custom taxonomiesThere is actually a filter that can accept additional taxonomies:
If you look at
get_allowed_taxonomies()
in theAdvanced_Categories_Widget_Utils
class, you’ll see a filter:$taxes = apply_filters( 'acatw_allowed_taxonomies', $_ptaxes );
You could add custom taxonomies by tapping into that filter.
Forum: Plugins
In reply to: [Advanced Categories Widget] Linking description to category?It’s an option I can look into adding, but at moment just the title links. Thanks for the suggestion!
Forum: Reviews
In reply to: [Advanced Posts Widget] Great here’s why:Thanks so much for the review!
I can look into updating the plugin to allow for hooks to show posts based on views or popularity, but currently those aren’t core WordPress filtering options, since WP doesn’t track views by default. Thanks for the suggestion though!
Forum: Reviews
In reply to: [Advanced Categories Widget] Great!Thank you! I’m glad it’s working out for you!
Forum: Plugins
In reply to: [Advanced Categories Widget] Lower case?That isn’t something controlled by the plugin. You may have a css rule applying a style to the category list making them all uppercase, or they could have been entered in the admin area in all uppercase. Can you provide a link to your site?
Forum: Plugins
In reply to: [Advanced Categories Widget] project categoryHi! Thanks for reaching out. This plugin does provide to show different taxonomies.
The plugin passes all allowed taxonomies through a filter before generating the checkbox list in the widget. All you have to do is tap into this filter with a function similar to this one:
https://gist.github.com/dboutote/0fa2b55264577dd3fcc53b615dc40cce
I provided 2 options; one is adding your custom taxonomy to the list of allowed taxonomies used by the plugin. The other is to replace the list of allowed taxonomies.
Forum: Reviews
In reply to: [Easy Banners Widget] Does exactly what I need!Awesome! I’m glad you like it! (You were the impetus for building it after I saw your post on AWP awhile back!)
Forum: Plugins
In reply to: [Advanced Posts Widget] only use on sidebar ?closing ticket. Feel free to open another if you have any other questions. Thank you.
Forum: Reviews
In reply to: [Advanced Categories Widget] Awesome pluginThank you for the review! I’m glad you like it!
Forum: Plugins
In reply to: [Advanced Categories Widget] Custom Sidebar not Showing for Category PageGlad it worked out!
Forum: Reviews
In reply to: [Advanced Categories Widget] Just what I was looking for!Thank you for the review! I’m glad it’s working out for you!