Sort Posts by Most Popular in Oxygen Builder

Sdílet
Vložit
  • čas přidán 17. 02. 2021
  • This tutorial video will show you how you can easily sort posts by most popular (most viewed) in Oxygen Builder. Using a few custom code snippets, we can easy add a meta key field that the Repeater element uses to sort posts. This is great for local directory or real estate sites where you might want to give a sense of urgency to how many times a page or post has been viewed.
    Code used in video: permaslug.com/sort-posts-by-m...
    Learn more about my Oxygen Builder course here: permaslug.com/ultimate-oxygen...
    Visit the premium forums: permaslug.com/forums/
    -Connect with me!-
    Facebook: / permaslug
    Twitter: / permaslug
    Website: permaslug.com
  • Věda a technologie

Komentáře • 16

  • @Permaslug
    @Permaslug  Před 3 lety +7

    This video has a slightly different style to it than normal. Let me know what you think!

  • @kylevandeusen
    @kylevandeusen Před 3 lety +1

    Great tutorial. Takes me back to the old site visitor count days!

    • @Permaslug
      @Permaslug  Před 3 lety

      My thoughts exactly! I was thinking it would be useful for local directory sites where you could show a business owner how many views their listing has gotten to sell them on a membership

  • @evgenkorpl
    @evgenkorpl Před 2 lety

    Jonathan, you're a genius. Thank you for the valuable information. Only I had to watch with pauses and at 0.75 speed, because you speak and show quickly 😉 It's like eating a piece of cake for you 😄, but for me this is the first practical excursion on this topic 😵‍💫
    I love your channel! Wish you success in your projects! ✌

  • @webmasterluciana3513
    @webmasterluciana3513 Před rokem

    helped a lot ! loved it !

  • @hmjuel7248
    @hmjuel7248 Před rokem

    Thank you bro,
    very helpful

  • @ribenawrath
    @ribenawrath Před 8 měsíci

    Works perfectly for me - is there a way to display the most popular on a month to month basis?

  • @adamzonnis980
    @adamzonnis980 Před 3 lety +1

    can you do a video on query parameters?

  • @TheCredibleHulk
    @TheCredibleHulk Před 3 lety +1

    Is there a reason you had to split the code into 2 separate snippets? I don't get why you couldn't just combine it into 1 single snippet..
    Also, it would've made sense to set the snippet to "Only run on site front-end", as there is no point trying to run it at all in the back-end. Even though it already won't actually execute on the back-end, since it's hooked into `wp_head`, but setting it to only run on frone-end would save Code Snippets an additional check. Which doesn't seem like much, until you realise that this code will now be checked on every single page load, every single time (both on front-end & back-end).

  • @tailskitaleshindi
    @tailskitaleshindi Před 3 lety +1

    So as a beginner, we have to find such code snippets to be able to get this function or a plugin can be used? Or do we need to search net for such codes for every new functionality? I am thinking of buying oxygen or learning elementor since it's more friendly and has more integrations.

  • @md.ahsanhabib7776
    @md.ahsanhabib7776 Před 2 lety

    Hello sir,
    thank you for the nice tutorial. I need a help on this snippet. I want to show 0 or custom text like no view yet when view is equal 0. How can I do this? Thanks in advance

  • @NickLePage
    @NickLePage Před 3 lety

    when you are doing the PHP code, is there any change that you can go though it? (I am learning it)

  • @damiaoherrera
    @damiaoherrera Před 2 lety

    How can I call this function within the code block to get the post views?

  • @Mohammed-vx6cd
    @Mohammed-vx6cd Před 2 lety

    Will it work while caching is enabled ?

  • @retroplayez2175
    @retroplayez2175 Před 2 lety

    This is great! Anyway to get the count to 1 per pageview per IP address?

    • @retroplayez2175
      @retroplayez2175 Před 2 lety

      I want to use this in my directory site along with order by comment count which will be business reviews.