Forums

[Plugin: Add to Any: Subscribe Button] How to Get Feedname and Feedurl from Posts (1 post)

  1. acejax
    Member
    Posted 2 years ago #

    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" => "http://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

Topic Closed

This topic has been closed to new replies.

About this Topic