Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add tags to custom post type

function reg_tag() {
     register_taxonomy_for_object_type('post_tag', 'CUSTOM_POST_TYPE'); // name of your post 
}
add_action('init', 'reg_tag');


// add this to your custom plugin folder or into your function.php file under theme folder


Comment

PREVIOUS NEXT
Code Example
Php :: array_unique 
Php :: laravel disable config cache 
Php :: Unable to locate publishable resources. Publishing complete. 
Php :: make a forign key in migrations using laravel 8 
Php :: error log array 
Php :: php exception message 
Php :: tmp cakephp name 
Php :: unix timestamp in php 
Php :: php is string 
Php :: laravel validation min string length 
Php :: print all session in codeigniter 
Php :: php delete array item by value not key 
Php :: superglobal php 
Php :: import class route laravel 
Php :: php append to array 
Php :: php console output 
Php :: last login date time in wordpress 
Php :: var_dump beautifier 
Php :: How to Get the last element of an array in PHP – end() 
Php :: take 10 character from string using php 
Php :: with in relation laravel 
Php :: wordpress custom loop 
Php :: check input value is integer or not in php 
Php :: Remove “/public” from Laravel route 
Php :: Fatal error: Maximum execution time of 120 seconds exceeded in 
Php :: phpmyadmin change database import size 
Php :: php regex validate username 
Php :: increase xampp phpmyadmin import limit 
Php :: php default timezone 
Php :: wordpress echo the page title 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =