Sort Posts by Most Popular in Oxygen Builder
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
This video has a slightly different style to it than normal. Let me know what you think!
Great tutorial. Takes me back to the old site visitor count days!
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
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! ✌
helped a lot ! loved it !
Thank you bro,
very helpful
Works perfectly for me - is there a way to display the most popular on a month to month basis?
can you do a video on query parameters?
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).
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.
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
when you are doing the PHP code, is there any change that you can go though it? (I am learning it)
How can I call this function within the code block to get the post views?
Will it work while caching is enabled ?
This is great! Anyway to get the count to 1 per pageview per IP address?
I want to use this in my directory site along with order by comment count which will be business reviews.