Hey Namaste 🙏,
In a one of the recent project, We have a requirement like need to display year-wise months at the right side of the page and on click any month have to display a list of the blog post of that month using ajax and have to disable month if there no any posts.
Check below screenshot for the better understanding.
For this, We used MySQL query, foreach and array. Please check below code.
If have a blog post in the month then values will set true.
Below is array output, you can use it anyplace as per your need.
Innovative WordPress Development Solutions Customized for Your Business At Zindex, we take pride in offering top-tier WordPress development services that redefine the way your business engages with the digital world. […]
Read moreHey Namaste, In this article, We will learn some of the SSH commands for server operations like zip, unzip, delete and move a file from one server to another. SSH […]
Read more
Yuvraj Khavad
I’m Yuvraj Khavad, I work at Z Index Solutions where I am the Co-founder!. I’m also like to read books and draw a painting. I have more than 5 years of experience in web development and web design.