Skip to content

Possible to insert PHP and JS on a post?

Home Support Support Tickets Possible to insert PHP and JS on a post?

Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #12530
      simon-shave.com
      Participant

      Hello, is it possible to insert both PHP and JS on a post using the CJT block on the post admin page?

      I ask as I have to add PHP and JS code to every product on our Woocomerce powered store and each piece of code needs to have the post ID placed in it. It is easier to add the code directly to a post otherwise I will need to create 200+ entries in the CJT admin area.

      Thanks

      Simon

    • #12531
      Damian Baker
      Participant

      Hi Simon,

      Thanks for your support question and sorry for the delay in getting back to you.
      That is a very good question and one that I will pose to my colleague.

      I will let you know as soon as I get an answer.

      Regards,
      Damian Baker

    • #12532
      Damian Baker
      Participant

      Hi Simon,

      I received a response from my developer, however sorry it is rather short. It’s just he is busy with so many projects at the moment.
      Anyway, he reply was:

      “Yes, you can mix PHP, HTML, CSS and JavaScript. You can programmatically output Post ID along with the JavaScript using PHP.”

      I hope that helps you.

      Regards,
      Damian Baker

    • #12533
      simon-shave.com
      Participant

      Hi Damien

      Thanks for the response. I will try it.

      Best

      Simon

Viewing 3 reply threads
  • You must be logged in to reply to this topic.