I am new,
can I take advantage of embody() or get_template_part to load an SVG file uploaded as featured picture instantly within the HTML web page?
I have to animate the svg photographs, however i would like to simply change the picture on every web page.
I’ve tried this code however does’t work, I can not discover the proper path, I can load solely the svg photographs in the identical folder.
$area = get_site_url();
$svg_url = get_the_post_thumbnail_url(get_the_ID());
$svg = str_replace( $area, '', $svg_url );
echo $svg; //just for learn the url
get_template_part($svg);
// or
inlcude $svg;