Forums

[resolved] WP_SITEURL, WP_HOME confusion (5 posts)

  1. modifiedcontent
    Member
    Posted 2 years ago #

    I'm trying to use SimplePie RSS. It has lots of annoying picky behavior. To include more than one set of RSS feeds on a page I have to use a URL for one of them - don't ask me why...

    This works:

    <? include 'http://hardcodedurl.com/feeds/feeds.php'; ?>

    To avoid hardcoded URLs I'd like to use this, but this doesn't work:

    <? include WP_SITEURL.'/feeds/feeds.php'; ?>

    Also tried it with WP_HOME. Nothing works. Why not? Anything else I could try?

    What are the WP_THINGS called? They're not template tags, are they? Is there a reference list of them somewhere?

  2. anujchauhan
    Member
    Posted 2 years ago #

    use <?php include bloginfo('siteurl'). '/feeds/feeds.php'; ?>

  3. modifiedcontent
    Member
    Posted 2 years ago #

    That doesn't work, anujchauhan. It just prints/echoes the URL.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    <?php include get_bloginfo('siteurl'). '/feeds/feeds.php'; ?>

  5. modifiedcontent
    Member
    Posted 2 years ago #

    Thanks esmi! That works.

Topic Closed

This topic has been closed to new replies.

About this Topic