Conversation
supportThis plugin is fantastic. It works great on posts when I call it, but I’m trying to use it within a php script, so when we create pages for customers, a form can autopopulate the tag that feeds this. It pulls the content properly, but the styling gets stripped out when i call via php. Is there a workaround I could do? Here is the code: <?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"]'); ?>
Hi, I understand. There is a new hook that can be used for this scenario lps/load_assets_on_page , it would require that in the script you could set the assets to load on this page (use the filter and return true for the pages that you want). Otherwise, you could use the new option from here, which is available in the settings-> reading screen (always load the LPS assets). https://imgur.com/a/y7nQSss Let me know if this works for you. Regards, Iulia This reply was modified 2 years, 7 months ago by Iulia Cazan .
that worked! thank you SO MUCH for the prompt reply. What a fantastic plugin BTW This reply was modified 2 years, 7 months ago by natewhidden .
Hi, I understand. There is a new hook that can be used for this scenario lps/load_assets_on_page , it would require that in the script you could set the assets to load on this page (use the filter and return true for the pages that you want). Otherwise, you could use the new option from here, which is available in the settings-> reading screen (always load the LPS assets). https://imgur.com/a/y7nQSss Let me know if this works for you. Regards, Iulia This reply was modified 2 years, 7 months ago by Iulia Cazan .
that worked! thank you SO MUCH for the prompt reply. What a fantastic plugin BTW This reply was modified 2 years, 7 months ago by natewhidden .