• Resolved lucianosereno

    (@lucianosereno)


    sorry for my ignorance, I installed the plugin and set the settings as shown in the images. But it doesn’t show the image on the category page. Maybe I need to add this php script somewhere?

    $taxonomy_img = get_taxonomy_image( int $term_id = get_queried_object()->term_id , boolean $return_img_tag = false , array $class = array() );

    get taxonomy image url if $return_html = true then return tag

    Parameters :
    $term_id
    (int) (Required) Taxonomy ID of the term.

    $return_img_tag
    (boolean) (Optional) Formatted Image with tag for the field during output.

    $class
    (array) (Optional) Array of image classes ex: array(‘class1′,’class2’,…) but $return_img_tag should be true to add image class.

    echo $taxonomy_img; // taxonomy image url

    thank you

    Luciano

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Sajjad Hossain Sagor

    (@sajjad67)

    Yes you need to add the function name in hour category archive template anywhere you want to show…

    $taxonomy_img = get_taxonomy_image( $term_id );

    it will return the image url and you can use in img tag src. Also if you provide 2nd parameter as true it will return img tag also and printed.

Viewing 1 replies (of 1 total)
  • The topic ‘plugin do not show the selected image’ is closed to new replies.