Add custom user meta fields in WordPress

In our pervious blog we did learn of how to show WordPress Users. In this particular blog we will learn how to display social links. For complete knowledge visit the previous blog. Below is our pervious final code for displaying WordPress Users: Basically the next thing that we want to display are Social links. And […]

Continue Reading...

How to set background image in React

Setting background image in React with Inline Css There are four ways to set a backgroundImage style property using React’s inline CSS. This blog will show you all four methods. 1. How to Set a Background Image in React Using an External URL. The code above will render one single <div>. With style property backgroungImage. If the […]

Continue Reading...

Build a Header Component in React

Making Components React projects are built with Components. To build web applications with React you need to think in Components. React would best be described as a library for creating user interfaces. Think of Components as the elements of user interfaces. For example, your site might be made up of the following Components: App, Header, Logo, […]

Continue Reading...

How to register and display custom menu in WordPress

Step 1: To register custom menu you need to go to your functions.php file. You need to call the register_nav_menus function inside your custom function oleez_register_my_menus and hook it to the init hook. Here, we are registering three custom menus: Header menu with menu name as header-menu, Header Secondary with menu name as header-secondary-menu Extra […]

Continue Reading...

Steps to add Slick Carousel | Slick Slider to your Custom Post Type?

Step 1: Register your Custom post type from your back-end. The best way to do it would be to register it in your includes file. You can also add it to your functions. php file. But i would recommend to create another file. It’s the easiest and the best way. It makes life simpler. So […]

Continue Reading...

Ways to Loop in WordPress

Default Loop Loop with get_posts() Customize the Loop with pre_get_posts Loop with query_posts() Loop with WP_Query() 30-Second Summary Each of these looping methods is useful in a variety of situations. They share a lot of the same underlying functionality, and the query parameters are essentially the same. Collectively, these four techniques enable simple loops, multiple […]

Continue Reading...

Functions

In WordPress, functions.php or the theme functions file is a template included in WordPress themes. It acts like a plugin for your WordPress site that’s automatically activated with your current theme. The functions.php file uses PHP code to add features or change default features on a WordPress site. For example, a WordPress theme might add a bit […]

Continue Reading...

Loop

The loop, or WordPress loop or simply loop, is PHP code that displays WordPress posts. The loop is used in WordPress themes to display a list of posts in a web page. Inside the loop there are some functions that are run by default to display posts. Theme developers can format the output by using […]

Continue Reading...
%d bloggers like this: