I gang

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:

<?php

// 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">';

the_sub_field('ceremonial_song');

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

if(the_sub_field('ceremonial_sample') ):

echo

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

endif;

echo '</div>';

echo '</div>';

endwhile;

else :

// no rows found

endif;

?>

Færdigheder: 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:

Mario

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)
6.3

5 freelancere byder i gennemsnit £21 for dette job

Aloknano

A proposal has not yet been provided

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

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 Mere

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

.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 Mere

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

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] Mere

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

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)
1.7