Это видео недоступно.
Сожалеем об этом.

Elementor Search Results Only Posts & WooCommerce Products

Поделиться
HTML-код
  • Опубликовано: 9 авг 2022
  • ✨ Join us in the Lytbox Academy Community:
    lytboxacademy....
    In this tutorial, you’ll learn how to make Elementor search results pages with only Posts and WooCommerce Products.
    Link to the code 👉 lytboxacademy....
    /////
    ✨ Learn High-Level Web Design Skills With Me:
    🟢 Master Elementor while learning web design skills:
    lytboxacademy....
    🟢 Learn powerful SEO in an easy-to-follow style for WordPress users and web designers:
    lytboxacademy....
    🟢 A step-by-step guide to building a WordPress Maintenance Business that results in high MRR:
    lytboxacademy....
    🟢 Become a Lytbox Academy Pro Member:
    lytboxacademy....
    /////
    ✨ My Recommended WordPress & Web Design Tools:
    👉 The hosting I use:
    Cloudways (use promo code LYTBOX for 30% off 3/months)
    lytboxacademy....
    xCloud:
    lytboxacademy....
    /////
    👉 My WordPress Tools:
    Elementor Pro:
    lytboxacademy....
    Breakdance Builder:
    lytboxacademy....
    Bricks Builder:
    lytboxacademy....
    Crocoblock:
    lytboxacademy....
    SEOPress (the best SEO tool for WordPress!):
    lytboxacademy....
    Perfmatters:
    lytboxacademy....
    InstaWP:
    lytboxacademy....
    WP Umbrella:
    lytboxacademy....
    /////
    ⏰ Time Stamps 👇
    1:39 Part 1: Building a Search Results Page with Elementor
    8:40 Part 2: Show Only Post in the Results Fix
    10:58 Part 3: Showing Only Products in Searches Fix
    Thank you for supporting my channel 🙏 - Jeffrey @ Lytbox
    #elementorsearchresults #wordpresssearcholnyposts

Комментарии • 71

  • @LytboxStudio
    @LytboxStudio  2 года назад

    You can find the code snippets here 👉 lytboxacademy.com/elementor-search-results-with-only-posts-and-woocommerce-products/

    • @Nba2012g
      @Nba2012g Год назад

      Great Video. Thank you. I have a question though, anyway to include brands and categories in the results? When searching for Category(electronics for example) it shows zero results. Thanks again.

  • @DEBUGENTITY
    @DEBUGENTITY 8 месяцев назад +7

    U can do this by using loop grid.. Just make the grid for using in search page.. & in query choose recent query & in display condition in search template choose posts & categories for displaying posts & choose products & categories same for showing.

    • @LytboxStudio
      @LytboxStudio  8 месяцев назад +1

      Yep it got much better using the Loop Grid now

    • @malcomtawandalintonmusuma9617
      @malcomtawandalintonmusuma9617 8 месяцев назад +1

      And how do we do it with ACF fields as well

    • @ahmedkhattab9899
      @ahmedkhattab9899 5 месяцев назад

      Hi! Can you explain it again plase? I Created a loop grid only for post but it inludes also the product. is there a way to exclude them in current query option?

  • @learnwithnorwebs
    @learnwithnorwebs Год назад +8

    Thank you for this video.
    I wanna know, how about a website that has a woocommerce shop and blog. How do you separate the search widgets, so that when you're on the shop page and search it shows only product, but when you are on blog and search, it shows only posts?

  • @aizazahmad2977
    @aizazahmad2977 Год назад

    Thank You So Much !!
    This helped me a lot ... Stay Blessed !!!!!!!🥰

  • @josevictormorais
    @josevictormorais 8 месяцев назад +1

    Thank you for the video! Helped me a lot!

    • @LytboxStudio
      @LytboxStudio  8 месяцев назад

      I’m so glad to hear thanks!

  • @slingsandarrows
    @slingsandarrows Год назад +2

    This is great! However it only searches by post title. How do I get it to search by title and category?

  • @NooNaLaluna
    @NooNaLaluna 2 года назад +1

    Thank you Jeff🙏

  • @zahovic5959
    @zahovic5959 11 месяцев назад

    Thank you!!!!! I was looking for this for a week and finally found the solution.

  • @GeenaMatuson
    @GeenaMatuson Месяц назад

    Thank you for this, still works! Can you show a code that would show combined search results of products, posts and pages?

  • @Maimon12345
    @Maimon12345 7 месяцев назад

    Thank you so much for this guide... keep up the quality content ❤️🙏

  • @lisaallen1305
    @lisaallen1305 Год назад +2

    Love your tutorials!! Question though... Is there a way to only show specific posts with a certain category?

  • @thehyeinyoon
    @thehyeinyoon 5 месяцев назад

    this was a game-changer! please keep the good work!

  • @zackrichter
    @zackrichter Год назад

    Thank you for this! You're awesome!

  • @gabrielmorent
    @gabrielmorent Год назад

    Thanks a lot for your video Buddie!

  • @ilianasam6814
    @ilianasam6814 9 месяцев назад

    Hi! Thank you so much for this video. Its super helpful to know everything we can achieve with just Elementor. Question, does this code work with custom post types as well? Like if I would like to just show specific post types on the search results?

  • @realswidan
    @realswidan Год назад

    Great, thank you so much

  • @Peebals
    @Peebals 2 года назад +3

    Finally Lytbox is back 🚀🚀

    • @LytboxStudio
      @LytboxStudio  2 года назад +1

      Back and on 🔥😂💪

    • @Peebals
      @Peebals 2 года назад +2

      @@LytboxStudio Hope now you continuously working on RUclips 🚀🚀 for such as amazing content 🚀🚀 super work

    • @LytboxStudio
      @LytboxStudio  2 года назад +1

      @@Peebals much ❤️ and big thanks!

  • @peterracz6040
    @peterracz6040 Год назад

    Thank you for the woo code

  • @elizabethabraham7005
    @elizabethabraham7005 Год назад

    Thank you!

  • @NOALNOM
    @NOALNOM Год назад

    Great channel Jeffrey! There is a way to include Authors in search results? Thanks!

  • @eugeneasiamah8337
    @eugeneasiamah8337 Год назад

    Thanks for your tutorial and code snippet. I have one issue tho... the search results does not show the newer post first, it's all mixed. How can i make the results show newer post first please.

  • @renatinho_cabeleira
    @renatinho_cabeleira 2 года назад +2

    Thanks for the video! Would it be possible to create a search results page with one column displaying posts and another column displaying products simultaneously?

    • @LytboxStudio
      @LytboxStudio  2 года назад +3

      Thank Renato and good question. It is possible to create such a results page but a bit more advanced than what this tutorial is showing. I’ve added this idea down to take a look at though for another tutorial.

    • @renatinho_cabeleira
      @renatinho_cabeleira 2 года назад

      @@LytboxStudio Amazing, thank you!

    • @sirhenryhu
      @sirhenryhu 2 года назад +1

      Thanks to Renato Silva for bringing this up which I just wanted to add to the comment. And for sure, a big thank you to @Lytbox for sharing the good stuff!!

  • @abhishekkumar10
    @abhishekkumar10 Год назад

    Can we search products by SKU ? using this

  • @rubendariogutierrezperilla235
    @rubendariogutierrezperilla235 Год назад

    Good tutorial... I have a doubt. If I'm using an Astro Pro Theme... How can I change it? Because when I designed the search template show me everything Post + page... and I don't want it. I really want to show just blog results

  • @scorgasmic
    @scorgasmic 8 месяцев назад

    The moment you said "I don't like using plug-ins" you got an automatic like from me, without even having to watch the rest of the video. Nothing annoys me more than looking for a solution to a very simple problem and going through a bunch of top ranking videos and articles that start out with "First, you wanna go to plug-ins and search for..."

  • @baintech4198
    @baintech4198 Год назад +1

    Hey, awesome video mate! Really informative and easy to understand. Btw, how do you make your pricing and add to cart button show-up on your search result? Mine is only showing the title, description and a read-more button. Thanks!

    • @tallie.t
      @tallie.t Год назад

      Hi, I have the same problem, did you solve it please?

    • @melaniebates9602
      @melaniebates9602 11 месяцев назад

      following..

  • @MuhammadUsman-oi4ps
    @MuhammadUsman-oi4ps 10 месяцев назад +1

    What if we have both products & Blog on the same website?

    • @LytboxStudio
      @LytboxStudio  10 месяцев назад

      Good question. I’d identify the primary purpose of the site. Usually if it’s a large ecommerce store with enough products that search would be useful, then selling products is priority over content. In this case, I’d stick with products in the search.
      I’d try and avoid 2 different search’s on 1 website.

  • @saucydee1
    @saucydee1 Год назад

    Is it possible to use both those code snippets on a website? So when the user is on the blog and they search, it only returns blog posts, and when in the store and searching, they are only returned store results?

  • @donesgrunge9153
    @donesgrunge9153 10 месяцев назад +1

    have solution how to organize search results with filters without plugins and other 3rd party? and with products variations displays as separates products. i did two tabs products and posts but when enable Relevancy plugin to extend search and show variations as products, Posts widget starts to show all type of content and imposible to exclude with Query Id too.

    • @LytboxStudio
      @LytboxStudio  10 месяцев назад

      To create a better search results filter, I’d either use a good plugin that can do everything needed, or add custom code for everything. I wouldn’t mix a plugin and custom code for this.
      What you can try it using ChatGPT and playing with some code snippets on a testing site to build something more advanced.

    • @donesgrunge9153
      @donesgrunge9153 10 месяцев назад

      @@LytboxStudio which plugin

  • @slingsandarrows
    @slingsandarrows Год назад

    Get tutorial. I'm only having one issue. When I go to use this template in one of my pages no posts show up. It's only showing me an archive of templates I've created. The elementor website says what I'm seeing is the normal behavior of using the Archive Posts widget. How do I fix this to actually show my blogs?

  • @kleanthis-5949
    @kleanthis-5949 Год назад

    Hello there! I have a small issue! When i search now (products only) it bring be back to my product template rather than my search result page. Also, is there a way to display a custom message and image when there are not products to show?

  • @browsebazaar
    @browsebazaar 6 месяцев назад

    What if the archive page for products is custom built?

  • @smeagoltheunrealdeviant9357
    @smeagoltheunrealdeviant9357 2 года назад +1

    Really nice video, I use Elementor for all my sites as well haha. Can you make a video on how to make an archive page for blog sites with Elementor? A page that shows all the posts over the years with the date in a list so that it's easy to find articles from like 3 years ago....

    • @LytboxStudio
      @LytboxStudio  2 года назад +2

      Hey thanks I dig your YT name! I actually have an in-depth tutorial coming up on building a blog site with Elementor including making it SEO optimized. It’s coming up soon!

    • @smeagoltheunrealdeviant9357
      @smeagoltheunrealdeviant9357 2 года назад

      @@LytboxStudio Thanks man! Your website is the sickest I've seen!!! Look forward to the tutorial!

    • @rehmankureshi
      @rehmankureshi Год назад

      @@LytboxStudio woahhh cant wait for the tutorial so excited its gonna be very educational especially the seo part please use the hello theme for elementor for the tutorial thank you!

  • @ManoMomen
    @ManoMomen Год назад

    Awesome, is their any way to edit (Search Result for:) title?

  • @healthymoneydiet
    @healthymoneydiet Год назад

    hi when I try to paste the code below the child theme code in the php file, word press gives an error message and won't let me save the file, Can you help me?

  • @worthsalive
    @worthsalive Год назад

    Thanks for this video. I want to ask if it is possible to have 2 search result pages working individually for posts and product search respectively. Also is it possible to create a custom loop item for product and blog post and then use these items to dynamically display either product or blog in the search result respectively.

    • @LytboxStudio
      @LytboxStudio  Год назад

      Both are possible. You can use the Loop builder for the search results page, I’ve been using it and it’s great! To have different pages for products and blog posts results will take a bit more customizations but is possible

    • @nikolacosovic3826
      @nikolacosovic3826 8 месяцев назад +1

      @@LytboxStudio Thanks for this awesome video. Could you please share info or advice on how to create a custom loop item within the search results page?

    • @LytboxStudio
      @LytboxStudio  8 месяцев назад

      @@nikolacosovic3826 create an archive template in your theme builder, in that template built it out like you would a regular archive using the Loop grid, and then set the display conditions to search results. This way you can create a unique look for your searches. Usually a list view makes it easier for the person searching to find things. I have more in depth tuts around this coming up

  • @elliotmccluskey
    @elliotmccluskey Год назад

    can you use loop builder to create a more customisable search results page? At the moment it just seems like you are limited to the archive posts widget. Thanks!

    • @drino532
      @drino532 11 месяцев назад

      Yes, you can

    • @ilianasam6814
      @ilianasam6814 9 месяцев назад +1

      Yes! When using the loop grid, you can select "Current Query" on the Query options to show the search results.

    • @nikolacosovic3826
      @nikolacosovic3826 8 месяцев назад

      @@ilianasam6814 Thank you so much.

  • @Rahul-Paul
    @Rahul-Paul Год назад +2

    Where is the code ?

    • @LytboxStudio
      @LytboxStudio  Год назад

      There’s a link to the code in the description

  • @renatinho_cabeleira
    @renatinho_cabeleira 2 года назад

    Is it at least possible to keep products AND posts on search results simultaneously? Those two snippets don't work together...

    • @LytboxStudio
      @LytboxStudio  2 года назад +1

      Hey Renato, for now this is either for a blogging site or a woo site so it’s either posts or products. Originally this tutorial was just on how to show posts in search results but I threw in the products as a last minute bonus. I’m going to circle back to it and I have on my list of future tuts displaying both. I like your ideas of having 2 columns for post and products. Cheers!

    • @paulastraycats
      @paulastraycats 6 месяцев назад

      try this one it worked for me :
      function custom_search_filter($query) {
      if (!is_admin() && $query->is_search()) {
      $query->set('post_type', array('post', 'product'));
      }
      return $query;
      }
      add_filter('pre_get_posts', 'custom_search_filter');

  • @xDomGrox
    @xDomGrox Год назад

    I can't believe Elementor allows to create a search result page, but there is no way to filter the results.

  • @rehmankureshi
    @rehmankureshi Год назад

    hi lytbox, thank you so much for the tutorial and also bringing it to our attention. i used the code you provided and it worked for the search functionality we wanted but than my custom post archive were messed up it was getting queries from all of my wordpress posts. than googled about the issue as i didnt knew myself what was wrong and found this piece of code which works without affecting any posts widgets and any archives. i used this snippet and everything worked perfectly.
    function remove_post_type_page_from_search() {
    global $wp_post_types;
    $wp_post_types['page']->exclude_from_search = true;
    }
    add_action('init', 'remove_post_type_page_from_search');