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

267
Vistas
PHP echo not outputting html tags

I'm trying to output content from an Advanced Custom Fields (ACF) in my wordpress theme. At the moment though, all I'm getting is the plain text content from the ACF inside double quotation marks, not inside the div and h1 tags.

The code is copied from another theme I made where it worked, which makes me think something is interfering with it somewhere?

<?php $process_title = the_sub_field('process_title'); ?>

<?php if(!empty($process_title)) : ?>
    <div class="process-title">
        <h1 class="process-heading">
            <?php echo $process_title; ?>
        </h1>
    </div>
<?php endif; ?>
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Thanks to @M.Eriksson, the correct code should be:

<?php $process_title = get_sub_field('process_title'); ?>
<?php if(!empty($process_title)) : ?>
    <div class="process-title">
        <h1 class="process-heading">
            <?php echo $process_title; ?>
        </h1>
    </div>
<?php endif; ?>
over 4 years ago · Santiago Trujillo Denunciar
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