How can I put cocos2d-js in wordpress page?

Can I put cocos2d-js in my wordpress page?

Just create/open for edit a page or post and click in the upper-right tab of the WYSIWYG editor to open the HTML editor, then paste the following sections of your game’s index.html in there (replacing the sample names and values for your own, of course):

<canvas id="gameCanvas" width="YOUR_WIDTH_HERE" height="YOUR_HEIGHT_HERE"></canvas>
<script src="yourSite.com/yourGame/frameworks/cocos2d-html5/CCBoot.js"></script>
<script src="yourSite.com/yourGame/main.js"></script>

Assuming you’ve copied your game’s and engine file into the directories specified in the HTML code, it should work!