Skip Navigation

[Resolved] RSS Feed linked to custom post type

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 26 replies, has 2 voices.

Last updated by Shane 6 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#617708

I have made a custom post type called Artikkel. I am trying to show a RSS linked to this post type, but not sure how I should solve this problem.

I found out that the RSS should be here: hidden link

If I am right it`s from this page: hidden link

This page is made with layouts, and has the same layouts for all category pages. Each category page has a taxonomy filter that is:

Select posts with taxonomy:
Kategorier the same as the current archive page

Which explains why hidden link and hidden link is blank.

Any ideas how I should solve this problem?

#617960

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

Thank you for contacting our support forum.

I took a look at this link for you and it seems that the feed is working.

Were you able to resolve this issue ?

Please let me know.
Thanks,
Shane

#618138

Hello Shane,

It looks like the RSS feed is working, but when you look closer you can see that there are no information about the recent posts in the feed. It gets the information from this page: hidden link This page is made with layouts, and has the same layouts for all category pages. The layout has a taxonomy filter that is:

Select posts with taxonomy:
Kategorier the same as the current archive page

So it`s not strange that the page has no posts, but I am not sure how I should solve this problem without breaking the other pages.

#618328

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

I see, would you mind providing me with admin access so that I can check on this ?

It seems that something is missing from the custom archive.

The private fields have been enabled for your next response.

Thanks,
Shane

#618425

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-02-21 at 1.25.03 PM.png

Hi Tom,

Thank you for the credentials.

I was able to log in and see the issue. It seems that you added the incorrect views for the Archive Layout.

Since this is an archive Layout you need to add an archive view cell. See Screenshot

Please try this and let me know if it helps.
Thanks,
Shane

#618571

Thank you, now it works correctly.

However, I see that the RSS feed is very untidy. Is there a way to clean this up? There are lot of divs, classes and so on I would like to remove only from the RSS.

E.g a tidy RSS: hidden link
Our RSS: hidden link

Looking for your help again,

Or if it`s possible to connect it with this feed: hidden link

#618782

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

Unfortunately not since you are designing the Archive with a Custom Layout and this will cause the archive information to be saved with the custom layout hence why there are divs from views there.

Thanks,
Shane

#624276

Hello again Shane,

I checked with the company who are going to use our RSS feed, and it turns out the RSS feed is invalid. They are asking if we can make a "real" RSS which starts like this:

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="<em><u>hidden link</u></em>">
<channel><title>Title of the page</title><link><em><u>hidden link</u></em>;
<description>Slogan</description>
<language>nb-no</language>
<atom:link href="<em><u>hidden link</u></em>" rel="self" type="application/rss+xml" />

<item><title>Article 1</title>
<link><em><u>hidden link</u></em>;
<description>Description to article</description>
<pubDate>man., 12 mars 2018 15:06:00 +0100</pubDate>
<guid><em><u>hidden link</u></em>;
</item>

<item><title>Article 2</link>
<description>Description to article</description>
<pubDate>man., 12 mars 2018 12:57:00 +0100</pubDate>
<guid><em><u>hidden link</u></em>;
</item>

So the problem is basically that the RSS feed can`t be used as it is now. How do we solve this?

#624640

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

I test this on a fresh install with our Toolset plugins and this was the results

<item>
		<title>IT Specialist</title>
		<description><![CDATA[Some text]]></description>
		<link><em><u>hidden link</u></em>;
			</item>

As you can see we have it properly formatted and the layout information is not present.

Maybe some other plugin is adding some extra information to the feed.

Would you mind just checking this for me by temporarily disabling all the non-toolset plugins and letting me know whats the results and we can move from there.

Thanks,
Shane

#626578

Hello again Shane,

I`ve disabled the following plugins:
Featured Images in RSS w/ Size and Position
Feedburner Alternative and RSS Redirect Plugin
WP Super Cache

However, problem is still there.

Any ways we may solve this?

At the top of the feed I see the following:

<div class="col-sm-9"><form autocomplete="off" name="wpv-filter-1196" action="<em><u>hidden link</u></em>" method="get" class="wpv-filter-form js-wpv-filter-form js-wpv-filter-form-1196 js-wpv-form-full" data-viewnumber="1196" data-viewid="1196" data-viewhash="eyJpZCI6IjExOTYifQ==" data-viewwidgetid="0" data-orderby="" data-order="" data-orderbyas="" data-orderbysecond="" data-ordersecond="" data-parametric="{"query":"archive","id":"1196","view_id":"1196","widget_id":0,"view_hash":"1196","action":"http:\/\/www.hitra24.no\/artikkel\/feed\/?wpv_view_count=1196","sort":{"orderby":"","order":"","orderby_as":"","orderby_second":"","order_second":""},"orderby":"","order":"","orderby_as":"","orderby_second":"","order_second":"","ajax_form":"","ajax_results":"","effect":"fade","prebefore":"","before":"","after":"","attributes":{"id":"1196"},"environment":{"current_post_id":2174,"parent_post_id":0,"parent_term_id":0,"parent_user_id":0,"archive":{"type":"post_type","name":"artikkel","data":[]}},"loop":{"type":"post_type","name":"artikkel","data":[],"id":"1196"}}" data-attributes="{"id":"1196"}" data-environment="{"current_post_id":2174,"parent_post_id":0,"parent_term_id":0,"parent_user_id":0,"archive":{"type":"post_type","name":"artikkel","data":[]}}"><input type="hidden" class="js-wpv-dps-filter-data js-wpv-filter-data-for-this-form" data-action="<em><u>hidden link</u></em>" data-page="1" data-ajax="disable" data-effect="fade" data-maxpages="21" data-ajaxprebefore="" data-ajaxbefore="" data-ajaxafter="" /><input class="wpv_view_count wpv_view_count-1196" type="hidden" name="wpv_view_count" value="1196" />

</form>
<div id="wpv-view-layout-1196" class="js-wpv-view-layout js-wpv-layout-responsive js-wpv-view-layout-1196" data-viewnumber="1196" data-pagination="{"id":"1196","base_permalink":"<em><u>hidden link</u></em>","query":"archive","type":"paged","effect":"fade","duration":500,"speed":5,"pause_on_hover":"disabled","stop_rollover":"false","cache_pages":"enabled","preload_images":"enabled","preload_pages":"enabled","preload_reach":1,"spinner":"builtin","spinner_image":"","callback_next":"","manage_history":"enabled","has_controls_in_form":"disabled","infinite_tolerance":"","max_pages":21,"page":1,"loop":{"type":"post_type","name":"artikkel","data":[],"id":"1196"}}" data-permalink="<em><u>hidden link</u></em>">

This is from Toolset I guess. How do we remove this from the feed?

#626662

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

Would you mind if I took a duplicator package from your site for further testing ?

I may need to submit this to our 2nd tier supporters for further debugging.

Thanks,
Shane

#626670

Sure, no problem 🙂

#627311

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

I'm currently performing the backup of the site but its 3gb so i'll keep you up to date as to the progress and testing results.

Thanks,
Shane

#628558

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tom,

Actually the RSS is valid because it has the necessary items that the company is looking for. However there are additional items since your page was completely build using layouts so these are included in the feed as well.

The company should be able to pick out the elements that its looking for .

Thanks,
Shane

#628812

Okay,

I checked with the company, but they say that the RSS feed is not valid.

I tried it my self, and it says it`s not valid: hidden link

Any ideas?