p4ssc3
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Slider Block Gutenslider] Broken since wordpress update to 5.9.1Well, bug is not here anymore. Just disappear, idk how.
Anyway, all is fine^^Same request, I need to show several fields in the admin column
Forum: Plugins
In reply to: [Redirection] Redirection menu for Editor roleHo nice thank you!
Forum: Plugins
In reply to: [Contact Form 7] submit the form only onceHi, there is anyone who can answer me ? thanks
[Moderator note: Please, No bumping].
- This reply was modified 2 years, 7 months ago by Steven Stern (sterndata).
Forum: Plugins
In reply to: [Modern Events Calendar Lite] Add a link in the breadcrumbs ob category pageHi,
For the records, I finally managed to do it with that code :
add_filter( 'wpseo_breadcrumb_links', 'wpseo_breadcrumb_add_event_link' ); function wpseo_breadcrumb_add_event_link( $linksbc ) { $terms = get_the_terms( $post->ID, 'mec_category' ); if ( !empty( $terms ) ){ // get the first term $term = array_shift( $terms ); $cat = $term->slug; } if ( is_singular( $post_types = 'mec-events' && $cat != 'sejours' ) || is_tax('mec_category', 'sejours') ) { $breadcrumb[] = array( 'url' => get_permalink( woocommerce_get_page_id( 'shop' ) ), 'text' => 'Shop', ); array_splice( $linksbc, 1, -2, $breadcrumb ); } return $linksbc; }
But yours is cleaner, and it works. Thanks !
Forum: Plugins
In reply to: [Modern Events Calendar Lite] Add a link in the breadcrumbs ob category pageForum: Plugins
In reply to: [Modern Events Calendar Lite] Change Main page title in BreadcrumbsHi,
Thanks but that’s not what I ask,
I was talking about the “archive page”Thanks
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumb : Hide the shop pageOkay I think I found it :
add_filter( 'wpseo_breadcrumb_links', 'wpseo_breadcrumb_remove_shop_link' ); function wpseo_breadcrumb_remove_shop_link( $crumbs ) { global $post; if ( is_woocommerce() ) { $shop_link = get_permalink( woocommerce_get_page_id( 'shop' ) ); foreach ( $crumbs as $key => $crumb ) { if ( in_array( $shop_link, $crumb ) ) { unset( $crumbs[ $key ] ); } } } return array_values( $crumbs ); }
Sorry for the spamming lol, maybe it will be usefull for someone else ?
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumb : Hide the shop pageI think I have found how to hide the uncategorized :
add_filter( 'wpseo_breadcrumb_links', 'your_prefix_wc_remove_uncategorized_from_breadcrumb' ); function your_prefix_wc_remove_uncategorized_from_breadcrumb( $crumbs ) { $category = get_option( 'default_product_cat' ); $caregory_link = get_category_link( $category ); foreach ( $crumbs as $key => $crumb ) { if ( in_array( $caregory_link, $crumb ) ) { unset( $crumbs[ $key ] ); } } return array_values( $crumbs ); }
(found on the other site)
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumb : Hide the shop pageCan I use this snippet, for remove and not add ?
I don’t know how to personalize this…
Thanksadd_filter( 'wpseo_breadcrumb_links', 'wpseo_breadcrumb_add_woo_shop_link' ); function wpseo_breadcrumb_add_woo_shop_link( $links ) { global $post; if ( is_woocommerce() ) { $breadcrumb[] = array( 'url' => get_permalink( woocommerce_get_page_id( 'shop' ) ), 'text' => 'Shop', ); array_splice( $links, 1, -2, $breadcrumb ); } return $links; }
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumb : Hide the shop pageForum: Plugins
In reply to: [WP Simple Booking Calendar] Give access to certain roleOkay I do this right now thanks
Forum: Plugins
In reply to: [WP Simple Booking Calendar] Give access to certain roleHi,
I finally bought the premium version “personal”, But the serial key doesn’t work on multisite as you told me.
Maybe it’s because my sites in multisite doesn’t have the same URL ?
thanksForum: Plugins
In reply to: [WP Simple Booking Calendar] Give access to certain roleHi,
thank you very much for you answerI’ve add the snippet in my function.php, then I don’t know what to do to affect the specific editor” role ?
tks
Forum: Plugins
In reply to: [WP Simple Booking Calendar] Give access to certain roleAlso, that “personal” licence contains the multisite support ?
thanks!