Lukasz
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumbs in search resultsGreat thanks!
I gave it a shot, using bcn_display_list( false, true, false, true ) since it takes the same parameters as bcn_display but I still had to add $wp_query->is_singular = true; so it behaves as single post for each result:
global $wp_query; // backup. $old_singular_value = $wp_query->is_singular; // change. $wp_query->is_singular = true; if ( function_exists( 'bcn_display_list' ) ) : ?> <nav class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/" aria-label="<?php esc_attr_e( 'breadcrumb' ); ?>"> <ol class="breadcrumb mb-1 small"> <?php bcn_display_list( false, true, false, true ); ?> </ol> </nav> <?php endif; // restore. $wp_query->is_singular = $old_singular_value;
Also for anyone else wondering you then have to edit the search template in the plugin config to something like this:
<span property="itemListElement" typeof="ListItem"><a href="%link%"><span property="name">%htitle%</span></a><meta property="position" content="%position%"></span> <span class="%type%">%htitle%</span>
Forum: Plugins
In reply to: [Breadcrumb NavXT] don’t show final breadcrumbHere you go, Author offers few ways to do this:
https://www.ads-software.com/support/topic/hiding-current-page-from-breadcrumbs-for-posts/
Forum: Plugins
In reply to: [Native Lazyload] Images not visible in Chrome 76I’ve tested the page with Twenty Nineteen and JavaScript turned off, and all images (from the NOSCRIPT tags) are loaded immediately (even if they’re several thousand pixels down the page).
I tried the same and had the same outcome, I also tried throttling the connection in chrome but all of the images still loaded. Static HTML pages loaded in WordPress seem to work.
They have already confirmed this issue in the support thread:
It’s coming to Edge some time this year but I don’t think internet explorer will ever support it:
https://developer.microsoft.com/en-us/microsoft-edge/platform/status/detailssummary/
Forum: Plugins
In reply to: [WP Search Suggest] Does this search custom post types by default?Thanks,
My custom post type was in a plugin and I was also running this code:
if ( ! function_exists('disable_plugins_when_wp_search_suggest') ) { add_filter( 'option_active_plugins', 'disable_plugins_when_wp_search_suggest' ); function disable_plugins_when_wp_search_suggest( $active_plugins ) { $uri = 'action=wp-search-suggest'; $action = 'wpss-post-url'; if ( false !== strpos( $_SERVER['REQUEST_URI'], $uri) || isset($_POST['action']) && $_POST['action'] == $action ) { $for_enable = 'wp-search-suggest/wp-search-suggest.php'; $index = array_search($for_enable, $active_plugins); foreach( $active_plugins as $idx => $plugin ) { if ( $index !== array_search( $plugin, $active_plugins) ) { unset($active_plugins[$idx]); } } } return $active_plugins; } }
So as you can see it disables all plugins when running search query, I will probably just include the custom post type code in my theme instead, thanks.
Forum: Themes and Templates
In reply to: [OceanWP] Is this Gutenberg ready?Thanks, good to hear!
Forum: Plugins
In reply to: [Translate Multilingual sites - TranslatePress] 2 Huge issuesThanks @raster02,
I develop many multilingual websites and I did enjoy using this plugin and thought it would be great for our technical writers, but can’t risk the potential lost work.
Also FYI:
https://wptavern.com/how-will-gutenberg-phase-4-impact-multilingual-solutions-for-wordpressThanks.
Great, thank you.
Forum: Plugins
In reply to: [Flamingo] [_serial_number] is duplicated bug (race condition)Thank you for the honest answer TM
Forum: Plugins
In reply to: [Contact Form 7] Custom error messages possible?Hi,
This is how I target for custom errors:
add_filter( 'wpcf7_display_message', 'validaiton_messages_fail', 10, 2 ); function validaiton_messages_fail( $message, $status ) { $submission = WPCF7_Submission::get_instance(); if ( $submission->is( 'validation_failed' ) ) { $posted_data = $submission->get_posted_data(); $message = __( 'your cusotm error message', ''); } elseif ( $submission->is( 'mail_failed' ) ) { $posted_data = $submission->get_posted_data(); $message = __( 'your cusotm error message', ''); } elseif ( $submission->is( 'spam' ) ) { $posted_data = $submission->get_posted_data(); $message = __( 'your cusotm error message', ''); } return $message; }
- This reply was modified 5 years, 8 months ago by Lukasz.
Forum: Plugins
In reply to: [Contact Form 7] WP rest api with post dataTo be more specific you need authentication, I can see in the code:
if ( ! current_user_can( ‘wpcf7_edit_contact_form’, $id ) ) {
return new WP_Error( ‘wpcf7_forbidden’,
__( “You are not allowed to access the requested contact form.”, ‘contact-form-7’ ),
array( ‘status’ => 403 ) );
}https://developer.www.ads-software.com/rest-api/using-the-rest-api/authentication/
Forum: Plugins
In reply to: [Contact Form 7] Upload file field translationYou can’t change the text, each browser has a default opinion on how it should be displayed. You can hide it and create your own custom file upload button through CSS and JS or find a plugin like https://www.ads-software.com/plugins/multiline-files-for-contact-form-7/
Google for more solutions.
It’s working for me, I didn’t try with a file attachment though. Try disabling recaptcha if still having issues.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 No Longer WokringIs the form successfully submitting? Do you get any errors? Are you using a php mail or a SFTP authenticated email account like google or outlook? Is your from sender field the same as your website domain?