yeah... it is the coolest way to show posts by category id.
you don't need to go longer.
yes, copy paste below code and it's done..!!
<?php
$current_cat_id = get_que...
We can easily do this by using the register_taxonomy() function into our functions.php file.
Just open your functions.php file.
And paste the below code at the end of your file....
there are two files that can be used for our own created custom post type.
the files are:
archive.phpsingle.php
To use the files we will just have to change the names wit...
Below I have shown the simple way to add custom post type in our WordPress site.
Just open your functions.php file. and at the end of your file copy and paste below code to add you...
Yes, Simplest and easy way to get the post and our created custom post type by wp query.
Just copy and paste below code into your file where you want to show /display your posts or...
As we know by default WordPress uses <wordpress@domain-name.com> for from email address and WordPress form From Name.
If you want to change default From email address and Fro...
first, you need to create a folder in wp-content/themes/YourChildthemeName
Suppose we are creating a child theme for the twentyFifteen theme.
then we can put our child theme name...
Page templates are a specific type of template file that can be used for one or more pages.
some of the main features for page templates are listed below, Have a look :
that...
Yes, We can easily get the Name of the page, Excerpt of the page and Content of the page, etc. by its id or by name.
Below easy and simple code will show you how it works.
Get page...
Source file
wp_get_nav_menu_object() is located in wp-includes/nav-menu.php.
to get the menu by its name. use below code:
wp_nav_menu( array(
'menu' => 'your men...
×
Get in Touch
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga,
aspernatur.