Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

119
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda