Tagged: x
-
AuthorPosts
-
February 7, 2017 at 4:57 am #1360947
Exord B.V.ParticipantHi there!
The search function for the entire website is not working with essential grid articles.
http://www.thegreenhapiness.com
Could you please help me?
thanks!
February 7, 2017 at 4:57 am #1360948
Exord B.V.ParticipantOh and I’m fully updated 🙂
February 7, 2017 at 6:01 am #1361014
LelyModeratorHello Rianne,
Your site is not loading when I checked. See attached screenshot.
February 13, 2017 at 3:10 am #1368630
Exord B.V.Participanthmmm…
can you try again??February 13, 2017 at 3:35 am #1368651
ChristianModeratorAnother support member here and your site doesn’t load on my end too (see attachment)
February 14, 2017 at 5:07 am #1370287
Exord B.V.ParticipantHmm.. that’s strange! I’m going figure this out
February 14, 2017 at 5:09 am #1370292
Exord B.V.ParticipantFebruary 14, 2017 at 6:30 am #1370358
LelyModeratorHi There,
Please add the following code on your child theme’s functions.php file.
// add custom types to archive function search_add_custom_types( $query ) { if( is_search() ) { $query->set( 'post_type', array( 'post', 'essential_grid' )); return $query; } } add_filter( 'pre_get_posts', 'search_add_custom_types' );Hope this helps.
February 14, 2017 at 8:46 am #1370481
Exord B.V.Participantthanks that worked!
February 14, 2017 at 9:33 am #1370537
RahulModeratorGlad we were able to help you.
Let us know if we can help with anything else.
Thanks for choosing the X-theme.
February 15, 2017 at 4:05 am #1371650
Exord B.V.ParticipantNew problem…
When I use the code from Lely the search function in admin @ WooCommerce is not working anymore… I get a message that I don’t have permission from WordPress to view the search resultsFebruary 15, 2017 at 5:29 am #1371751
LelyModeratorHi There,
Try updating the code to this:
// add custom types to archive function search_add_custom_types( $query ) { if( is_search() && ! is_admin() ) { $query->set( 'post_type', array( 'post', 'essential_grid' )); return $query; } } add_filter( 'pre_get_posts', 'search_add_custom_types' );Hope this helps.
February 15, 2017 at 7:50 am #1371928
Exord B.V.Participantthat worked 🙂
February 15, 2017 at 6:03 pm #1372667
RadModeratorGlad to hear that!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1360947 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
