WPIntell

Source evidence

Missing styles when calling through PHP

Latest Post Shortcode · support · 2023-10-26T14:54:00+00:00

mixedsentiment
mediumseverity
0.78relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 31 rows with source links

9.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
natewhidden resolved
This 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 .

Comments

2 shown
Iulia Cazan 2023-10-26T15:53:00+00:00

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 .

natewhidden 2023-10-26T16:50:00+00:00

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 .