- Posts: 105
wordpress and Json
- bern gill
-
Topic Author
- Offline
- Premium Member
-
Less
More
13 Feb 2022 14:14 #1
by bern gill
wordpress and Json was created by bern gill
In a recent new website seminar it was suggested we get used to using JSON feeds rather than RSS and try the 'json content importer' plugin.
The Ramblers help document on feeds suggests the format
• Basic syntax – www.ramblers.org.uk/api/lbs/walks?groups=DE02 (for a list of all walks by this group)
• Full syntax –
www.ramblers.org.uk/api/lbs/walks?groups...Saturday,Sunday&dist ance=4-10&limit=5&dow=1
i.e. it looks ver simialr to the RSS feed format
However the syntax for JSON content importer is for example
[jsoncontentimporter url=”https://api.wordpress.org/plugins/info/1.0/json-content-importer.json”]Version: {version}, {downloaded} Downloads, {num_ratings} Ratings: {rating}%[/jsoncontentimporter]
I've tried with their example
[jsoncontentimporter url=http://www.ramblers.org.uk/api/lbs/walks?groups=GR01]test[/jsoncontentimporter]
and this produces the word test about 8 times - probably the same as the number of matches for GR01
How to merge the to syntaxes to produce something useful?
The Ramblers help document on feeds suggests the format
• Basic syntax – www.ramblers.org.uk/api/lbs/walks?groups=DE02 (for a list of all walks by this group)
• Full syntax –
www.ramblers.org.uk/api/lbs/walks?groups...Saturday,Sunday&dist ance=4-10&limit=5&dow=1
i.e. it looks ver simialr to the RSS feed format
However the syntax for JSON content importer is for example
[jsoncontentimporter url=”https://api.wordpress.org/plugins/info/1.0/json-content-importer.json”]Version: {version}, {downloaded} Downloads, {num_ratings} Ratings: {rating}%[/jsoncontentimporter]
I've tried with their example
[jsoncontentimporter url=http://www.ramblers.org.uk/api/lbs/walks?groups=GR01]test[/jsoncontentimporter]
and this produces the word test about 8 times - probably the same as the number of matches for GR01
How to merge the to syntaxes to produce something useful?
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
13 Feb 2022 20:49 #2
by Ruby Tuesday
Replied by Ruby Tuesday on topic wordpress and Json
Please login to view the answers
Please Log in or Create an account to join the conversation.
- bern gill
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 105
19 Feb 2022 07:49 #3
by bern gill
Replied by bern gill on topic wordpress and Json
Please login to view the answers
Please Log in or Create an account to join the conversation.
Time to create page: 1.450 seconds
