lexi
lexi copied to clipboard
About page does not load
I think I followed the instructions correctly, as I do have the hello world post showing.
I then created an About page with slug about
, but when I click on /about i still get the main blog list. Note that I am using multisite, and the page is to be found at http://localhost/<newwork_name>/about/
, although I can't see why that would mess up wp-json if other posts show.
I am also unable to get the about page to load. Seems like a routing problem.
I am able to pull in a list of posts from an external website using wp-url.js
Any fix for this?
Same error is there a fix for this?
Make sure you are putting the dynamic routes after the about route, so try:
<Route path="/" component={LexiTheme}>
<IndexRoute component={PostsContainer} />
<Route path="about" component={AboutPageContainer} />
<Route path=":pageNum" component={PostsContainer} />
<Route path=":year/:month/:name" component={PostContainer} />
</Route>