Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

116
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda