Hi folks – after an hour of messing with this I thought it was time to ask for kind soul to help.
What I’m trying to do is print the list of our RSS feed on a post page, and I’m trying to put this into our post template, but can’t seem to sort out the nested element needed to print the advanced custom field inside the template call for RSSimport. If I just hand code the URL to feed in the code, in template works fine, but need to vary per post and pull from data field.
What I’m trying to do in the raw form… and not correct:
<?php RSSImport(10, '<?php the_field("fc_network_full_url"); ?>'); ?>
hut of course that generates
Error: Feed has a error or is not valid
Have also tried shortcode, and shortcode inside shortcode, and other shenanigans. And I’m totally missing something stupid, I know.
<?php RSSImport(10, '[the_field("fc_network_full_url"]'); ?>
Basically tying to drop the datafield from ACF into the quoted URL section within the post template, to put the URL into the RSSImport call.
I plead stupid. 🙂
- The topic ‘Trying to use with Adavcned Custom Fields’ is closed to new replies.