Home / Forums / DynamiX Support / Wrong RSS Feed link

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts

  • Thanatermesis
    Participant

    Seems like the links of the RSS feeds are wrong, they points to the single posts/news/blog instead of the main thread, I think that the purpose of [get_permalink] is to “share” the link but what if the users simply wants to read the news thread?

    For example: in the main news page (where are listed all the recent posts) you get the feed link and it points to: domain/category/news/top-10-good-things/feed/rss , but it should instead point to domain/category/news/feed/rss


    Thanatermesis
    Participant

    Or more exactly, when you open the post itself it points correctly, but if you are in the main category with all the post listings it shows the link of the last post instead of the page itself (+ /feed/rss/)


    Tom ( Support)
    Keymaster

    Hi,

    Where are you getting the links from? Have you got a plugin installed to provide them? Please could you provide a live example so we can full understand what you mean?

    Kind regards,
    Tom


    Thanatermesis
    Participant

    I have tried to disable all the plugins, is not the rss feed comming from Dynamix itself (or wordpress) ?

    I get them from the “Social Buttons” bar that opens when you click on the share button, there’s a RSS/Feed one on the list


    Thanatermesis
    Participant

    You can see a live example here: http://www.elivecd.org/news/ , by clicking in the social buttons


    Thanatermesis
    Participant

    I have just pushed changes for show you more “live examples”, if you go to the “last posts” links (which is the real WP blog thread link) that points to http://www.elivecd.org/posts/ you can see all the last entries/posts (3 actually), if you go to the RSS link in social buttons you can see that it points to the last post, instead of the thread of that page, more exactly:

    – wrong feed: http://www.elivecd.org/testimonials/testimonial/feed/rss/
    – it should be: http://www.elivecd.org/posts/feed/rss/ (after to enter seems like it redirects to removing the last “rss/” part of the link, but stills working as expected)


    Tom ( Support)
    Keymaster

    Hi,

    If you navigate to Appearance > Theme Options > Social Media > RSS > Change the RSS link to your preferred link does this help you out? It should change the link of your RSS feed for your social media icons.

    Hope this helps.

    Kind regards,
    Tom


    Thanatermesis
    Participant

    Of course not! this will change the link statically everywhere

    I’m talking about a BUG in Dynamix that is in the [get_permalink] parameter which returns a WRONG value


    Tom ( Support)
    Keymaster

    Hi,

    We have looked into this on our server and the permalinks seem to be working but and RSS feed it won’t get the posts within that page. If you want a RSS feed from a group of posts you will have to use a category. It can’t look at a page then find all the RSS feeds for them. The only way it would work like that is if you pulled in a category, it is not possible with the built in RSS feed, you may have to look at a 3rd party plugin.

    Kind regards,
    Tom


    Thanatermesis
    Participant

    I think that you still not understand the problem, there is a BUG in the RSS Feed of Dynamix that points to a wrong place. Ok, let me try to explain you it again.

    I have these links:
    http://www.elivecd.org/posts/
    http://www.elivecd.org/news/

    The first is the posts/blog entry where all the news are published, the second is a category as what you are telling me, if you enter on the news one, and click in the last entry/post you go directly to the post of the news itself “migrating website bla bla”, and then you click in the RSS feed, you obtain that link: http://www.elivecd.org/news/migrating-to-new-website/feed/rss , which is CORRECT, please note (for understand where is the problem) that this feature is getting the permalink which is http://www.elivecd.org/news/migrating-to-new-website/ and then adds the “feed/rss” in the end

    Ok so, then we go back to the links where all the news are published, you have also the social buttons here and when you click on the RSS ones, what you should obtain as link? do you guess? because it makes perfectly sense, if dynamix is getting the permalink of this link, it should get “http://www.elivecd.org/posts/” and then add “feed/rss” in the end, and this is also how it shows configured in the admin configurations, its simple and this is what it should do, but instead of that, it gets the permalink of the first post, which is ANOTHER DIFFERENT PAGE, this makes sense? of course not! is not the permalink of the page that you are but the one of another one, so why it is getting that permalink? because of a BUG in dynamix

    Do you understand now the bug?

    Again, for conclude:

    I have these links:
    http://www.elivecd.org/posts/
    http://www.elivecd.org/news/

    Dynamix “rss feed” social icons should give me:
    http://www.elivecd.org/posts/feed/rss
    http://www.elivecd.org/news/feed/rss

    But instead it gives me:
    http://www.elivecd.org/posts/migrating-to-new-website/feed/rss
    http://www.elivecd.org/news/migrating-to-new-website/feed/rss

    Andy
    Andy
    Keymaster

    Hi,

    Can I ask a favour, can you provide your FTP details and I’ll try to fix this for you this morning. The issue is the blog posts are overriding the permalink address, what I need to do is to retrieve the permalink from the page and not let the posts override it.


    Thanatermesis
    Participant

    Hi Andy,

    Actually I can give you login to the “tests” site, which is like a snapshot for development, but as said, this snapshot will be “restarted” (removed) the next time so its not useful to do fix on it, in fact I use an own “rsync” for the dynamix sources which are updated (and so cleaned up) every time there’s a “git push” on it, so again its a bit useless for fix it on my site. It is actually not a hurry problem for me so I can wait the next update of dynamix if you are going to fix it on the upstream sources, if it is not the plan (i don’t found any reason of why not, since its a bug), tell me what modification is needed to made on the sources or a patch to apply upon it.

    By other side if what you need is to do tests on my site because of the specific case (I assume that this happens to all the sites using dynamix?), I can of course give you the login details (I don’t have FTP, only ssh and web access), for that tell me your email for send you the credentials / account, so I don’t want to put them publically around 🙂

    Thanks
    Thanatermesis

    Andy
    Andy
    Keymaster

    Hi Thanatermesis,

    I believe I may have found a solution. Edit DynamiX/lib/inc/sub-functions.php

    Locate this:

    $permalink = get_permalink();

    change to:

    if( is_page() ) {
    $permalink = get_permalink();
    }
    elseif( is_category() )
    {
    $category = get_the_category();
    $permalink = get_category_link( $category[0] );
    }

    Please let me know if this works, thanks.


    Thanatermesis
    Participant

    Hi Andy,

    Confirmed, this fixes the bug 🙂

    I’m not going to apply the changes on my installation so I assume that you will include it with the next update (im not hurry), please tell me if is not the case.

    Thank you!
    Thanatermesis

    Andy
    Andy
    Keymaster

    Awesome, yep, it will be in the next version. 🙂

Viewing 15 posts - 1 through 15 (of 23 total)

You must be logged in to reply to this topic.