Category: WordPress
-
How To Restrict WordPress Search to Titles Only
In this blog we will learn about how to restrict WordPress to search by title only. We can hook into WordPress using `posts_where` hook and then modify the query to search by post title using `post_title LIKE` You can watch the above video for the demo.
-
Maintaining A 16:9 or 1:1 Responsive Aspect-Ratio Of An Image Using CSS
One of the greatest challenges developers face is to maintain an aspect ratio of multiple images with unknown dimensions. In this blog, we will learn just that. Let’s take an example of these two images with different dimensions. The problem is that we cannot give it a fixed height because the width will change in…
-
Adding Clean SVG Markup Using Use SVG In WordPress
This blog talks about adding clean SVG Markup using Use-SVG in WordPress Firstly, lets put all the svgs in a template, giving each on an id e.g. `id=”icon-hamburger-menu”` Now add this CSS Now in your footer.php, include that template. The included svgs will beadd these into the footer Now you can use it in any…
-
WP_Query To Get Custom Posts Type Posts By A Taxonomy Term With Fallback Posts
This blog will demonstrate how to make a WP_Query to get 5 posts of a custom post type by a taxonomy term and if we don’t have enough, then we fill the remaining slot using default posts as a fallback. That’s all folks!
-
Create Infinite Scroll In WordPress With AJAX Request — Custom Code Without A Plugin.
In this blog, we will learn about the infinite scroll. We will also add pagination for Google, which will be hidden for users. Let’s take a brief look at the steps required: Create None for Security and Enqueue Scripts Let’s Create a nonce for AJAX request and pass the nonce to our JavaScript file which…
-
How to Build Your First App with Codeytek’s Guidance
This paragraph serves as an introduction to your blog post. Begin by discussing the primary theme or topic that you plan to cover, ensuring it captures the reader’s interest from the very first sentence. Share a brief overview that highlights why this topic is important and how it can provide value. Use this space to…
-
Breaking Down Complex Code: Simplified Learning
This paragraph serves as an introduction to your blog post. Begin by discussing the primary theme or topic that you plan to cover, ensuring it captures the reader’s interest from the very first sentence. Share a brief overview that highlights why this topic is important and how it can provide value. Use this space to…