Support » Plugin: RSSImport » Trying to use with Adavcned Custom Fields

  • Resolved neotrope


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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author took77


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

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

    Thank you !
    forgot to reply… 🙂

    That worked perfectly.

    I had the [ inside the ( when needed ( inside ( ….


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to use with Adavcned Custom Fields’ is closed to new replies.