Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to display the taxonomy image in wordpress

<?php

// get the current taxonomy term
$term = get_queried_object();

// vars
$image = get_field('cat_image', $term);

?>

<img src="<?php echo $image['url']; ?>" />
Comment

PREVIOUS NEXT
Code Example
Php :: how to create wordpress shortcodes 
Php :: foreach loop laravel 
Php :: php pdo update 
Php :: password_hash 
Php :: woo set_stock_quantity 
Php :: php laravel assert on error show message 
Php :: Installation request for phpoffice/phpspreadsheet 1.4.0 - satisfiable by phpoffice/phpspreadsheet[1.4.0] 
Php :: php time ago 
Php :: php get first key of array 
Php :: validation error message in laravel 
Php :: php stop execution 
Php :: add seconds to datetime php 
Php :: Check if a String Starts With a Specified String in PHP 
Php :: woocommerce profile photo upload 
Php :: IlluminateDatabaseEloquentCollection to array 
Php :: php get country from cloudflare 
Php :: php fix array index 
Php :: remove non-uppercase character php 
Php :: php string beginnt mit 
Php :: break and continue in laravel 
Php :: php typecast to int 
Php :: 2 decimal round using php 
Php :: Syntax error or access violation: 1071 Specified key was too long; 
Php :: brew php version 
Php :: php remove path from string url 
Php :: php array length for loop 
Php :: what is the hashmap like in php 
Php :: factorial function php 
Php :: Type cast using double php 
Php :: php replace first occurrence in string 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =