Comments (5)
Hi, you can change the files Redux/actions/PostActions.js which is used to fetch the post data, in oder to change the request URL you can refer the the services/WordpressAPI.js and replace the request method
Example:
let api = wp.posts() .tags(tags) .categories(categories).excludeCategories(Config.excludeCategories) .perPage(limit) .page(page) .sticky(sticky);
could be replace by implementing new function inside WodpressAPI:
WordpressAPI.prototype.getPosts = function () { var requestUrl = this.url + ' /wp-json/wp/v2/foodporns'; return this._request(requestUrl); };
from beonews.
Before your answer I did the changes in WordpressAPI.js. But I still don't understand what should I call on redux. I added:
import test from "@services/WordpressApi";
and rewrote let api to let api = test.getPosts();
, a I get that is a function not defined(?!)
from beonews.
Hi, can you please give some update on this? I did all the navigations, style, menu changes and I'm stuck on this, since I never used redux library/state container. What should I do in PostActions.js? thanks!
from beonews.
could you share that file here so we can have a check ?
from beonews.
here it is. thanks!
from beonews.
Related Issues (20)
- Can't Change Category Image HOT 3
- Open post after search HOT 7
- Logo alignment HOT 4
- Error in left menu user option HOT 1
- Home articles error HOT 3
- problem with the category slider HOT 1
- iPhone X support is mandatory for new apps HOT 1
- Youtube Cant Play HOT 4
- Font Size inside tag html HOT 1
- How to disable some items in the tabbar and in the left menu? HOT 2
- Reload new content? HOT 1
- Images error HOT 1
- Error: Parser is unable to parse the response HOT 1
- User menu on Left drawer pops up signup modal even when user ios logged in
- Clicking on image opens image in zoomed out mode
- Excluding a category in Category page also removes it from every other location too
- BUILD FAILED
- Change home page in app to single static page
- App left menu Needs to display, Wordpress menu module
- I can't get the jwt token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beonews.