manton / jsonfeed-wp Goto Github PK
View Code? Open in Web Editor NEWWordPress plugin to add a JSON Feed to your site.
Home Page: https://jsonfeed.org/
License: GNU General Public License v2.0
WordPress plugin to add a JSON Feed to your site.
Home Page: https://jsonfeed.org/
License: GNU General Public License v2.0
I noticed the plugin is up to version 1.3.0 on wordpress.org but only versions 1.0, 1.1.1, and 1.1.2 exist on GitHub. Is it possible to add the missing tags (or at least future ones) to GitHub as well?
Hey.
I'm having an issue with my JSON feeds in Feedly โ they're not showing up at all in their listings. I emailed them and they wrote back that they're expecting an application/json
in the header, while getting an application/feed+json
instead.
I don't know who is at fault here but I'd love to be able to solve this issue.
Like every RSS to json scripts it always miss the enclosure.
Audios, Videos, Images
https://core.trac.wordpress.org/ticket/44838
I got a get_self_link function introduced to Core in the next version. Suggest we implement a backcompat function to be removed in future.
The file feed-template.php
is not part of this repository but it's in the version on wordpress.org.
I have done some changes on my JSON output with the hook: add_filter('json_feed_item', 'wp_custom_json_feed_fields', 10, 2);
if I call the URL with / at the end, all changes are there. If I call the URL without a / at the end, no changes are used and I get the default json back.
can closed. it was a f*cking caching issue!
Other WordPress feeds use the guid
field as the feed id. If the URL changes, the ID of the element also changes if the plugin uses the URL.
One thing I see lacking in RSS is the ability to have items that advise about future events. For instance, I want to syndicate the Swimming Meet Event calendar for my sporting organisation, so that individual clubs could include the calendar of upcoming events on their site.
With RSS I could do so by putting the upcoming date in the title of the item. However I'd like to be more semantic about it.
I'd suggest just adding a 'eventdate' optional field to item. This would then allow implementations to feature future events.
A JSON feed generated for a category has the correct posts but an incorrect feed_url; it shows the home page feed instead.
Should look at using register_activation_hook
instead because it only needs to be run once. Happy to write the PR if you'd like.
How would one go about increasing the number of posts displayed?
Just need to use the built in pagination in WordPress.
So, retrieve the query object, and if paged is less than max_num_pages, generate a permalink for this.
Request to @pfefferle who contributed the original WebSub PR that was merged
Hello
This is great. Thanks for this. Would love to use it on the blogs I am in charge of. Though, even if it's just dropping a folder in my plugins folder, I think it would be easier and would reach mass adoption more quickly if you could add it to https://wordpress.org/plugins/
Thanks again for your work.
Adding a new field (or even modifying an existing one) doesn't work when adding the code you supplied in the FAQ to functions.php of the theme. Could it be that the filter is not added at the right time because functions.php is executed after the plugin is executed?
What would be the correct point to add the code you supplied in the FAQs to add or modified fields without modifying the plugin code?
Allow other plugins to adjust the feed output.
I have a lot of such errors in my error log:
Undefined variable $max_page in /.../feed-json-functions.php on line 54
Is there some way to disable the <link>
for the post comments feed? If there's some sort of custom function that can hook into the plugin and stop that from being output, that would be fine, too. Thanks.
Typically a WordPress blog applies some amount of content massage to translate a post's database content to presentation form. For example, double line breaks are converted to paragraph tags. It doesn't look like the plugin is doing this kind of massage to the content, so a post that has raw paragraphs separated by newlines gets a content_html with \n\n in it instead of
wrappers.
The Readme.txt
and other info files still claim the plugin requires only WP 4.0 or higher, but it currently (since the August 2018 flurry of commits) using functions in feed-template.php
that were introduced in WP 4.4, e.g. wp_parse_url()
and get_the_post_thumbnail_url()
, causing the feed to return HTTP 500.
There may be other function usages from even newer WP versions, but I stopped checking after those two.
I notice this while filtering the title for a category feed: Instead of using the blog title as the feed title, this should be aligned with other feeds and properly use the get_the_title_rss()
as the feed title.
It appears that the JSON response for the feed isn't cached. I noticed this while tweaking on some things in my functions.php code (to remove Emoji images from the feeds).
The JSON feed updated immediately, but the RSS feed needed the cache to be deleted.
I poked around the wp-content/cache/supercache/<SITE>/feed
directory and the only thing in there are XML feeds.
As adoption of JSON Feed picks up, this could become a performance issue for sites.
The JSON Feed at /feed/json
only shows up on the primary site in a WP Network. On all other sites in a network the feed URL comes up with a 404 error. The feed works just fine on the primary site, and on single-site WP installs, but does not work at all on the secondary sites of a multisite install.
Add a JSONFeed importer so you can import posts from a JSON Feed.
I've been manually modifying feed-template.php
each update, but it would be nice to see a UI for alternating the content between the post content or the excerpt.
WordPress has comment feeds, but not a jsonfeed equivalent. Add template for this
I can't seem to find a way to filter posts by status in the URL (like /feed/json?post_status=publish).
Currently, the feed for one post type also returns private items, which I want to exclude from the feed. How would I achieve that?
After I test with my website, I try to minify it's can reduce size around -50%. So It's can increase performance for us.
Thank you,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.