Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
How to run a shortcode and then add a new div to the HTML page with its output using javascript/php

This is my shortcode: [sc name="frt"][/sc]

I have a WordPress website and I'm looking to insert this shortcode's output to a new div that will be created dynamically and added to my HTML page.

How the process looks like:

  1. Run the above shortcode and get its output
  2. Add a new with id myDiv to the HTML page dynamically and insert the above shortcode's output

So every time the page loads, the shortcode runs, we get its output and then the output is added to a new div that's added dynamically.

I have a javascript plugin in my WordPress website and that's where I'll be inserting the code. I could really use some help, it will be much appreciated. Thanks!!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!