• My theme uses <?php wp_head(); ?> to retrieve the page title and RSS feeds. On the front end, it looks something like this:

    <title>Site name</title>
    <link rel="alternate" type="application/rss+xml" title="Site name &raquo; Feed" href="https://localhost:8888/wordpress/feed/" />
    <link rel="alternate" type="application/rss+xml" title="Site name &raquo; Comments Feed" href="https://localhost:8888/wordpress/comments/feed/" />

    When creating the static version, the title remains but the RSS links are missing. Can anyone help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    Hi Jeremy,

    The plugin tries to remove most unused WP tags that it inserts. In this case, it’s been too aggressive for your needs.

    I’ll make this an optional thing you can turn off, but for now, you can make an edit to

    library/StaticHtmlOutput/HTMLProcessor.php

    around line 136, and comment out or remove the line containing ‘alternate’.

    This is based on the latest version, which you can download from

    https://forum.wp2static.com/-30/how-to-install-the-latest-preview-of-version-59-of-wp2static

    Please let me know if that’s enough to get your export working, else there may be some other XML related things needing fixing before the next official release.

    Cheers,

    Leon

    Thread Starter Jeremy Sarber

    (@jsarber)

    Thank you. Your suggestion worked perfectly. Unfortunately, though, updating to version 5.9 created a new problem. All of my relative links have the target folder in them (i.e., /static/url/).

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Jeremy,

    Ah, sorry. Someone else just raised that issue today with the development build. I’ll get to it before release.

    For the version 5.8, there will be similar code somewhere, that is looking for that alternative tag among other WP things to strip. I can’t for the life of me remember, but if you can’t find it via some full text searching, let me know and I’ll track it down.

    That should keep you going for now.

    I’ll keep updating that page on the forum with the latest dev build and usually notify the general Slack channel at https://wp2static.com/community/ if you want to be on alert/remind me in a few days if I haven’t fixed the relative links issue.

    Cheers,

    Leon

    Thread Starter Jeremy Sarber

    (@jsarber)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP2Static seems to strip RSS feed meta’ is closed to new replies.