[Plugin: Add to Any: Subscribe Button] How to Get Feedname and Feedurl from Posts
-
First off, thanks for these great plug-ins!
I have two questions on things I can’t seem to figure out.
First, I want to use the template tags to allow for subscribing to comment feeds. So, as outlined in the FAQ, I’d use this:
<?php if( class_exists('Add_to_Any_Subscribe_Widget') ) { $A2A_SUBSCRIBE_options = array( "feedname" => "Name of the Feed", "feedurl" => "https://www.example.com/feed"); Add_to_Any_Subscribe_Widget::display( $A2A_SUBSCRIBE_options ); } ?>
But how do I grab the “Name of the Feed” and “Feedurl” dynamically for each post? Whatever I put inside of the quotes just seems to be taken as plain text, and so I can not use tags like “the_title()”.
Question 2, in addition to having a button on my single.php template for subscribing to specific comment feeds on posts, I’d like to have a general blog rss subscribe button on my header.php template. Is having two buttons on the same page, with different feeds (and perhaps using different graphics) supported?
Thanks
- The topic ‘[Plugin: Add to Any: Subscribe Button] How to Get Feedname and Feedurl from Posts’ is closed to new replies.