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

271
Views
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 answers
Answer question

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 Report
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!