WordPress.org

Forums

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

  1. neotrope
    Member
    Posted 1 year 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. :-)

    https://wordpress.org/plugins/rss-import/

  2. took77
    Member
    Plugin Author

    Posted 11 months ago #

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

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

  3. neotrope
    Member
    Posted 3 months ago #

    Thank you !
    forgot to reply... :-)

    That worked perfectly.

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

    (doh!)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • RSSImport
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic