lims Posted December 20, 2021 Share Posted December 20, 2021 anyone help please how to display this code into footer.tpl whmcs this code work in single php, show 4 resent post from wordpress feed <?php $rss = simplexml_load_file('mydomain.com/feed/'); $i = 0; foreach ($rss->channel->item as $item) { if($i<4){ echo '<div><a href="' . $item->link . '" title="' . $item->title . '">' . $item->title . "</a></div>"; } $i++; } ?> thanks before 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted December 21, 2021 Share Posted December 21, 2021 Use the ClientAreaFooterOutput hook for that . 1 Quote Link to comment Share on other sites More sharing options...
lims Posted December 22, 2021 Author Share Posted December 22, 2021 17 hours ago, steven99 said: Use the ClientAreaFooterOutput hook for that . thanks that will become on {$footeroutput} i have custom template footer, but i will try moved it 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.