How to make a dynamic rss feed in wordpress using add_query_arg?
First of all, I apologize if my English is bad.
I have a small impasse, I need to redeem an rss from a partner domain whose address is: https://cursor.saobraz.edu.br/Service/Rss.ashx?courseId=980&action=investment
At this address, the CourseId is a single piece of information that will change according to the information that the user adds in a field that I created in the wordpress panel. I added a code to my file to get the field information and format the link. It stayed like that.
<?php echo add_query_arg( array( 'courseId' => $un_rss, 'action=investment' => ' ' ), 'https://cursor.saobraz.edu.br/Service/Rss.ashx'); ?>
It’s working, but now I need to know how to bring the wordpress rss feed to that address, would anyone have a light for me?
Leave an answer