Category: Uncategorized
-
Adding Rewrite Rules In WordPress Tutorial
In this blog, we will learn about how to create rewrite rules in WordPress. The problem Let’s say we want to have a monthly archive page for a term. WordPress has a term archive page, which is /{taxonomy}/{term}/ , but does not have a monthly archive page for that term. This means /{taxonomy}/{term}/{year}/{month}/ does exist by default. The solution…
-
Get Archive URL In Array Format With wp_get_archives And Regex
In this blog, we will learn how to extract just the monthly archive URL/path , instead of markup. Output
-
Change the Archive Link Structure And Add Rewrites For Custom Post Type In WordPress
In this blog, we will learn about how to change the URL structure and add rewrites for Custom Post Type Archive Pages Let’s add re-writes, That’s all folks!
-
Adding Local Fonts or Google Fonts In Tailwind CSS With WordPress
In this blog, we will learn about how to add local fonts in TailwindCSS.There are several reasons why you should include fonts locally. Watch this video to know more. Step 1: Download the Fonts Locally Use Google Fonts helper Place the fonts into the fonts directory. Step 2: Copy the fonts code into fonts.scss Step 3: Add the…
-
Apply Different CSS Styles Based On Window Size (Responsively) Without Using JavaScript Window Event
Switching CSS classes or properties based on screen size can be achieved using JavaScript as shown below. But handling such things with JavaScript window resize event is not as efficient to achieve it with CSS. Using Tailwind For example, if we want to create a feature where the child menu opens on mouseenter event and…
-
Adding Scroll To Top In WordPress Site
In this blog, we will learn about how to add a scroll to the top button in WordPress Site.Scroll To Top ButtonAdd the scroll to top button in footer.php Note that some of the classes I am using are from tailwindcss. InViewPortAnimationCreate a JS file called in-viewport-animation.js . Debounce functionCreate a JS file called functions.js…
-
https://codeytek.org/adding-offset-with-limit-to-wp_get_archives-for-pagination/
In this blog, we will learn about how to create a custom post-type search result page in WordPress. We need to take the following steps: Step One — Custom Search Page Template Create a Custom search page template custom-post-type-search.php Step 2 — Load your template using ‘template_include’ filter Inside your functions.php Step 3 — Custom Search…
-
Adding Offset With Limit To wp_get_archives for pagination.
In this blog, we will learn about how to add the offset and the limit for pagination. In this example, we are showing this for monthly archives, but you can do it similarly for the daily and yearly as well. Using this function. That’s all folks!
-
Check If A User Or Author Has Avatar In WordPress And Set User Image With First Letter As Default
Sometimes we do not want WordPress to display the default avatar. There isn’t a WP core function to check that. So we will create one. We will also learn how to add the first letters of the user’s first name and last name as a fallback avatar picture using JavaScript. Steps to achieve the goal:…
-
Exploring the Heart of Indian Cuisine in Winnipeg: An Interview with Poonam Vatsyayan, Owner of Bread and Biryani
In the bustling core of Winnipeg’s downtown, Bread and Biryani stands out as a beacon of authentic Indian cuisine. Founded in 2021 by Poonam Vatsyayan, the restaurant has rapidly become a favorite among locals and newcomers alike, offering traditional dishes like biryani, samosas, and freshly baked naan that are not only flavorful but affordable. I had the…