Ready to get started?Download WordPress


[resolved] Trying to use with Adavcned Custom Fields (2 posts)

  1. neotrope
    Posted 4 months ago #

    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. :-)


  2. took77
    Plugin Author

    Posted 1 month ago #

    I'm not sure what you exactly want to do, but this might work:

    <?php RSSImport(10, the_field("fc_network_full_url")); ?>


You must log in to post.

About this Plugin

About this Topic