• 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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter thepete

    (@thepete)

    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!

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

    Thread Starter thepete

    (@thepete)

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘RSS syndicate using old URI structure’ is closed to new replies.