GithubHelp home page GithubHelp logo

manton / jsonfeed-wp Goto Github PK

View Code? Open in Web Editor NEW
188.0 188.0 33.0 103 KB

WordPress plugin to add a JSON Feed to your site.

Home Page: https://jsonfeed.org/

License: GNU General Public License v2.0

PHP 100.00%

jsonfeed-wp's People

Contributors

danielpunkass avatar dannyvankooten avatar donbowman avatar dshanske avatar kasparsd avatar kkoppenhaver avatar manton avatar oddevan avatar pfefferle avatar sardisson avatar soean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsonfeed-wp's Issues

Properly add tags to github

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?

application/feed+json instead of application/json

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.

It miss the enclosure

Like every RSS to json scripts it always miss the enclosure.
Audios, Videos, Images

/feed/json != feed/json/

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!

Upcoming Events

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.

Flushing rewrites on init

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.

Number of posts

How would one go about increasing the number of posts displayed?

Add next_url

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.

Adding a new field to JSON doesn't 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?

Disable post comments feed <link>?

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.

Feed vends unmodified post content for post_html

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.

Requires at least WP 4.4, not WP 4.0 as specified

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.

Use correct RSS feed title

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.

JSON feed isn't cached.

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.

Not Working on WordPress Multisite

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.

Hide private posts

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.