WordPress Template: Echo Shortcode Problems

I am using the repeater field of the Advanced Custom Fields plugin for WordPress to display song names and where relevant, offer a sample to play using the Compact Audio plugin.

I am using the echo shortcode function and this works to an extent - however, it's not actually executing the shortcode and is instead showing the file URL (which is the value of the field "ceremonial_sample"). I have used this on other sites (albeit not within the repeater field - that's the only difference along with the field names). Can anyone tell me how to fix this?

Here is the page where I'm experiencing the problem: [url removed, login to view]


Code below:


// check if the repeater field has rows of data

if( have_rows('ceremonial') ):

// loop through the rows of data

while ( have_rows('ceremonial') ) : the_row();

// display a sub field value

echo '<div class="song">';


echo '<div class="sample">';

if(the_sub_field('ceremonial_sample') ):


do_shortcode( '[sc_embed_player fileurl="'.the_sub_field( 'ceremonial_sample' ).'"]' );


echo '</div>';

echo '</div>';


else :

// no rows found



Evner: PHP

Se mere: sample problems, div problems, wordpress audio, shortcode, advanced custom field, wordpress repeater, wordpress template plugin, advanced custom fields repeater, wordpress sample data, custom loop, wordpress template file, sample template using php, wordpress fix url, sample data wordpress, class template, wordpress advanced custom fields template, echo fix url php, audio class, fix wordpress problems, wordpress template custom, echo file php, php echo file, wordpress plugin custom data, class custom template, fix wordpress template

Om arbejdsgiveren:
( 50 bedømmelser ) Glasgow, United Kingdom

Projekt ID: #6028256

Tildelt til:


Professional web developer and designer for more than 7 years. I have advanced experience in WordPress and I can start today if you're interested. Thank you very much

£22 GBP in 0 dage
(103 bedømmelser)

5 freelancere byder i gennemsnit £21 på dette job


A proposal has not yet been provided

£20 GBP in 0 dage
(115 bedømmelser)

Hello, I understand the problem you faced. I will fix it. I have more than 8 years of experience in IT-Programming and creating websites. I have best ratings on FL and good completion ratio. above all, I am reasonable Flere

£22 GBP in 0 dage
(64 bedømmelser)

.Dear sir, 100% Grantee Work. we believe in quality and timely deliver of work for better relationship. we have experience programmers team which can do every task within minimum time. We are a small team but our perfo Flere

£20 GBP in 2 dage
(8 bedømmelser)

PHP [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] Flere

£22 GBP in 0 dage
(6 bedømmelser)

HI..Me as Wordpress expert having experience of 5 [url removed, login to view] you allow then I can solve rightnow.I understand the problem.

£18 GBP in 0 dage
(1 bedømmelse)