WordPress

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 …

How to register and display custom menu in WordPress Read More »

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 …

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

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 …

Ways to Loop in WordPress Read More »

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 …

Functions Read More »

%d bloggers like this: