WordPress.org

Ready to get started?Download WordPress

Forums

RSS syndicate using old URI structure (5 posts)

  1. thepete
    Member
    Posted 9 years ago #

    I'm trying to have a separate page on my site that will display a handful of categories only. I was hoping to be able to offer rss feeds for just the entries that appear on this new page. (It's an index.php in a subdirectory.) However, there's a chunk of code in the header that won't load in any browser. I take it out and the page loads fine. The catch? This bit of code seems to be the part that builds all the cool RSS stuff--then again, I could be wrong--I'm still figuring a lot of this stuff out.

    Here's the code that gums up the works:

    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>

    My guess is that this is required for me to provide an RSS feed for this page.

    Check out the gummed up page here:

    http://thepete.com/pocket/indexnot.php

    Here's how it supposed to look:

    http://thepete.com/pocket/indexworks.php

    Any theories would be greatly appreciated. Thanks in advance!

  2. vkaryl
    Member
    Posted 9 years ago #

    Well, if that page is in a subdirectory, you'll have to re-link all that, because it's not finding the info in its current path. Though the one which displays is in the same subdirectory so maybe that's a non-starter after all....

    Um. Idle curiosity here: why don't you have an external stylesheet instead of crapping up your php files with it in the head section?

    Also, your background pic tiles instead of filling the screen. That's just a cosmetic notation.

  3. thepete
    Member
    Posted 9 years ago #

    By re-linking, do you mean just fixing the paths/URLs? Like this:

    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>../print.css" />

    I added the ".." in front of "print.css" and that didn't help. Still a blank page.

    Thanks for the suggestion, though!

  4. vkaryl
    Member
    Posted 9 years ago #

    Try hard-linking with the absolute URL. Just to see if that makes a difference.

  5. thepete
    Member
    Posted 9 years ago #

    Tried changing it to this:

    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>http://thepete.com/print.css" />

    And still no-go.

    Does it make sense to try it with the absolute path and not URI?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.