Im using PHP to call a shortcode, and populate a tag value. Its working great on posts, and is pulling in the proper data, but the styling is getting pulled out when using this within PHP.
Here is the shortcode im using:
[latest-selected-content ver=”2″ limit=”24″ perpage=”3″ showpages=”more” loadtext=”Load More” pagespos=”1″ display=”title” titletag=”h4″ url=”yes” image=”full” elements=”25″ size_title=”20px” image_ratio=”16/9″ css=”three-columns has-shadow hover-highlight content-center” type=”post” status=”publish” tag=”cohere-health” orderby=”dateD” show_extra=”light_spinner”]
Here is the PHP code im using to call this:
<?php
$value = get_post_meta(get_the_ID(), ‘insighttag’, true);
echo do_shortcode(‘[latest-selected-content ver=”2″ limit=”24″ perpage=”3″ showpages=”more” loadtext=”Load More” pagespos=”1″ display=”title” titletag=”h4″ url=”yes” image=”full” elements=”25″ size_title=”20px” image_ratio=”16/9″ css=”three-columns has-shadow hover-highlight content-center” type=”post” status=”publish” tag=”‘. $value . ‘” orderby=”dateD” show_extra=”light_spinner”]’);
?>
I’m using PHP to call a shortcode, and populate a tag value. Its working great on posts, and is pulling in the proper data, but the styling is getting pulled out when using this within PHP.
​
[ad_2]