SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <? get_header(); ?>
  2.  
  3. <? while() { ?>
  4.   Выводишь блоки из loop своего
  5. <? } ?>
  6.  
  7.  
  8. <script>
  9.   var jsonData = [];
  10.   <? while() { ?>
  11.     jsonData.items.push(
  12.         {title: <? echo $title; ?>, text: <? echo $text; ?>}
  13.     );
  14.   <? } ?>
  15. </script>
  16. <? get_footer(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top